EVP_CIPHER* to name

2.4k Views Asked by At

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?

1

There are 1 best solutions below

2
On BEST ANSWER

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