You are not logged in.
Pages: 1
Hi,
Can't find in documentation. I need:
OaepPadding
OaepHash = sha256
Offline
So, I can't use X509 for this?
Offline
It is requierment of taxpayer system.
Taxpayer document says:
After encryption of the bill, through the AES/GCM algorithm, the encrypted symmetric key and IV must be placed next to the encrypted bill. To encrypt the symmetric key, the asymmetric RSA-OAEP-SHA256 method must be used, which is obtained from the public key(s) of the taxpayer system with a length of 4096 bits. A valid intermediate center is used (the public key of the taxpayer system is obtained using the GET_SERVER_INFORMATION method).
C# example of this document is :
https://jsfiddle.net/8w2u3sex/
Last edited by anouri (2024-08-24 08:23:00)
Offline
Is there a future plan to implement OAEP ?
Offline
Is OAEP already available? Also for government issues I need it.
Offline
I needed too. Just implement needed encryption/decryption, for similar Api, using openssl 3.
Small test in gist https://gist.github.com/TTomas/c65727c6 … 1ea9586df4
I have a problem in decrypt, function EVP_PKEY_CTX_set_rsa_oaep_md return error:03000094:digital envelope routines::invalid operation. Same function in encrypt is OK!
Workaround, I add EVP_PKEY_CTX_set_rsa_oaep_md_name in mormot.lib.openssl11.pas, diff in gist. In some forums, I find suggestion for openssl 3 to use this function.
Offline
Pages: 1