3

I've got an EVP_CIPHER* by using EVP_get_cipherbyname("AES-256-CTR"), now I would like to find a way to get from the EVP_CIPHER* back to the original name, in this case "AES-256-CTR".

Is there a method to do this in libcrypto?

X-Istence
  • 16,324
  • 6
  • 57
  • 74

1 Answers1

3

Please look at EVP_CIPHER_name here. See, if it can solve your purpose.

Alexander Kjäll
  • 4,246
  • 3
  • 33
  • 57
doptimusprime
  • 9,115
  • 6
  • 52
  • 90
  • I do believe that may solve my problem. I'm so happy that it is documented ;-) – X-Istence Apr 19 '13 at 07:03
  • Why does the [google search on openssl.org](https://www.google.com/search?sitesearch=www.openssl.org&q=EVP_CIPHER_name) return no results for `EVP_CIPHER_name`? – greatwolf Jan 16 '17 at 03:23