问题
Im having trouble hunting down documentation which mentions whether or not RFC 3447 is implemented in openssl.
I have generated some test vectors for RSA-OAEP encryption using openssl 1.0.0. When I checked the openssl documentation i see that it mentions EME-OAEP as defined in PKCS #1 v2.0. source:-http://www.openssl.org/docs/crypto/RSA_public_encrypt.html.
But when i have given these test vectors to one of my clients, they happen to say that the vectors are only compatible with version 2.1 not 2.0.
Any pointers would be appreciated.
Thanks
回答1:
I have checked that even though the documentation mentions as EME-OAEP v2.0 as being implemented, but it's not so.
File:- rsa_oaep.c
In ver 2.0 EM = maskedSeed || maskedDB
In ver 2.1 EM = 0x00 || maskedSeed || maskedDB.
And hence i was able to conclude that almost from the beginning versions of openssl, its always been 2.1 NOT 2.0.
来源:https://stackoverflow.com/questions/11317058/rfc-3447pkcs1-v2-1-is-it-implemented-in-openssl-if-so-from-which-version