Why can not find AES_ctr128_encrypt defination in openssl 1.1.0g?

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
发布了16 篇原创文章 · 获赞 20 · 访问量 3226
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 1024 设计师: 上身试试

分享到微信朋友圈

×

扫一扫,手机浏览