Why can not find AES_ctr128_encrypt defination in openssl 1.1.0g?

落爺英雄遲暮 提交于 2020-01-16 03:51:21

Why can not find AES_ctr128_encrypt defination in openssl 1.1.0g?

AES_ctr128_encrypt is removed from openssl 1.1.0g

You can use CRYPTO_ctr128_encrypt instead of AES_ctr128_encrypt

AES_ctr128_encrypt(
  in, 
  out, 
  len, 
  &cipher->aes_key->key, 
  cipher->aes_key->IV, 
  buffer, 
  &num); // removed from openssl 1.1.0g


CRYPTO_ctr128_encrypt(
  in, 
  out, 
  len, 
  &cipher->aes_key->key, 
  cipher->aes_key->IV, 
  buffer, 
  &num, 
  (block128_f)AES_encrypt); // instead
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!