Dear all,
did you ever try these commands in 1.0.1c or 1.0.2 (I didn't check any
other versions):
openssl rsautl -inkey rsa.key -encrypt -oaep -out rsa.enc -in message
openssl pkeyutl -inkey rsa.key -decrypt \
-pkeyopt rsa_padding_mode:oaep -in rsa.enc -out rsa.dec
You will fail with a "parameter setting error". As a workaround you can
use the command
openssl pkeyutl -inkey rsa.key -decrypt \
-pkeyopt rsa_padding_mode:oeap -in rsa.enc -out rsa.dec
I attached the patch to solve the misspelling problem.
/Ann.
--- openssl-1.0.1c/crypto/rsa/rsa_pmeth.c 2012-02-15 15:14:01.000000000 +0100
+++ openssl-1.0.1c.patch/crypto/rsa/rsa_pmeth.c 2012-11-16 09:46:17.225479800 +0100
@@ -610,5 +610,5 @@
else if (!strcmp(value, "none"))
pm = RSA_NO_PADDING;
- else if (!strcmp(value, "oeap"))
+ else if (!strcmp(value, "oaep"))
pm = RSA_PKCS1_OAEP_PADDING;
else if (!strcmp(value, "x931"))