RFC 3447(pkcs#1 v2.1): Is it implemented in Openssl ? If so from which version?

社会主义新天地 提交于 2019-12-08 11:08:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!