RFC 3447(pkcs#1 v2.1): Is it implemented in Openss

2019-06-14 10:58发布

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条回答
孤傲高冷的网名
2楼-- · 2019-06-14 11:21

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.

查看更多
登录 后发表回答