使用EVP API可以使用AES CTR模式加密吗?

编程入门 行业动态 更新时间:2024-10-23 01:55:48
本文介绍了使用EVP API可以使用AES CTR模式加密吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是OpenSSL的新手。我明白加密应该使用作为所有密码的通用接口的EVP API执行。 AES CTR模式似乎存在于我拥有的OpenSSL版本中,但EVP_aes_128_ctr的定义在evp.h中被禁用:

I'm new to OpenSSL. I understand that encryption should be performed using the EVP API which acts as a common interface to all the ciphers. AES CTR mode seems to be present in the version of OpenSSL that I have, but the definition for EVP_aes_128_ctr is disabled in evp.h:

#if 0 const EVP_CIPHER *EVP_aes_128_ctr(void); #endif

任何想法为什么会这样?我可以删除#if 0吗?要获取128位AES CTR模式加密在OpenSSL中工作的任何其他指针将不胜感激!

Any idea why this is? Can I just remove the #if 0? Any other pointers on getting 128 bit AES CTR mode encryption to work in OpenSSL would be appreciated!

谢谢!

推荐答案

Btw,看起来像这样的答案是没有,还没有。但也许很快我发现这个电子邮件主题表明,解决此问题的修补程序可能已于2010年6月提交:

Btw, it looks like the answer to this is no, not yet. But maybe soon. I found this email thread indicating that a patch to address this issue may have been submitted in June 2010:

www.mail-archive/libssh2-devel@cool.haxx.se/msg01972.html

但是当我从SVN下载最新的开发分支机构时,执行副总裁仍然没有启用AES点击率。我最终只是直接实现它,我发现这个链接有帮助:

But when I downloaded the latest development branch from SVN, AES CTR was still not enabled in EVP. I ended up just implementing it directly, for which I found this link helpful:

AES CTR 256 Encryption Mode of operation on OpenSSL

更多推荐

使用EVP API可以使用AES CTR模式加密吗?

本文发布于:2023-11-09 09:46:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572054.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以使用   模式   API   EVP   AES

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!