我需要使用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填充,看看RSA_padding_add_PKCS1_PSS函数,这个链接:http://fixunix.com/openssl/526614-signing-verifying-messages-rsassa-pss.html