openssllibcryptoevp-cipher

EVP_CIPHER* to name


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?


Solution

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