gpt4 book ai didi

c++ - openssl 支持 RSASSA-PPS ,RSA EMSA-PSS 编码吗?

转载 作者:行者123 更新时间:2023-11-28 03:48:50 25 4
gpt4 key购买 nike

我需要使用 SHA256 HASH 函数和带有 RSA EMSA-PSS 编码的 RSASSA-PSS 创建数据字符串的签名。openssl 支持这个吗?

我正在使用 API 创建签名

int RSA_sign_ASN1_OCTET_STRING(int type,const unsigned char *m, 
unsigned int m_length,unsigned char *sigret,
unsigned int*siglen, RSA *rsa);

int RSA_verify_ASN1_OCTET_STRING(int type,const unsigned char *m, 
unsigned int _length,unsigned char *sigbuf,
unsigned int siglen, RSA *rsa);

我不确定它默认使用哪种填充技术和编码方法。任何人都可以告诉它使用的默认方法是什么,它是否支持 RSASSA-PSS 和 RSA EMSA-pss

最佳答案

其实它支持PSS padding,看看RSA_padding_add_PKCS1_PSS函数,这个链接:http://fixunix.com/openssl/526614-signing-verifying-messages-rsassa-pss.html

关于c++ - openssl 支持 RSASSA-PPS ,RSA EMSA-PSS 编码吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6327345/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com