code: func certToPrivAlgo(algo string) string {
  	for privAlgo, pubAlgo := range certAlgoNames {
  		if pubAlgo == algo {
  			return privAlgo
  		}
  	}
  	panic("unknown cert algorithm")
  }
docs: // certToPrivAlgo returns the underlying algorithm for a certificate algorithm.
  // Panics if a non-certificate algorithm is passed.