Questions tagged [oaep]

OAEP (Optimal Asymmetric Encryption Padding) is defined in PKCS1 and, of the two methods defined in that standard, it is the more secure one.

16 questions
2
votes
1 answer

OAEP RSA parameters with RSACryptoServiceProvider.Encrypt

RSACryptoServiceProvider.Encrypt has an f0AEP parameter that can be set to "true to perform direct RSA encryption using OAEP padding (only available on a computer running Windows XP or later)". The thing is... with OAEP you have parameters like the…
neubert
  • 15,947
  • 24
  • 120
  • 212
1
vote
2 answers

oaep decryption with HSM private key

I have a key pair storage in HSM. SP for HSM is not support "RSA/ECB/OAEPPadding" decryption. I can decrypt without padding with existing private key. Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding",…
An Anita
  • 153
  • 7
1
vote
0 answers

Padding mode not valid when try do decrypt a JWE payload with RSA-OAEP-256 and A256GCM

I have no expertise with cryptography, i'm trying to decrypt a JWE payload in ASP.net core C#, the information that i have is the encryption was performed with RSA-OAEP-256 and A256GCM, so i'm using Jose libraries do deal with cryptography, the code…
1
vote
0 answers

RSA OAEP Implementation compiling problem

I downloaded RSA-OAEP example from https://github.com/Rupan/rsa. Next I compile in linux kali: gcc -O0 -ggdb -Wall -W -DTEST tiger.o sboxes.o oaep.c -o oaep && ./oaep SomeRandomString Output of this was: gcc: error: tiger.o: No such file or…
1
vote
1 answer

How to Decrypt RSA OAEP with SHA256 using openssl on PHP

i try decrypt using opensll on php. Required algorithm is rsa-oaep with sha256. what do i need to write for $cipher_algo? $key = 'examplekey'; $secret = 'examplesecret'; $cipher_algo = ''; $out = openssl_decrypt(base64_decode($secret),…
Syaifudin Zuhri
  • 108
  • 1
  • 2
  • 11
1
vote
1 answer

unable to use OAEP decryption in python

Here's my code: from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_OAEP from Crypto import Random from Crypto import Hash import base64 key = RSA.import_key("""-----BEGIN PRIVATE…
neubert
  • 15,947
  • 24
  • 120
  • 212
0
votes
1 answer

Test RSA-OAEP decryption using the google/wycheproof test vectors

I am trying to test RSAOAEP decryption using google/wycheproof test vectors. Below is the snippet of testvectors "testGroups" : [ { "privateKeyPem" : "-----BEGIN RSA PRIVATE…
Anand Barnwal
  • 303
  • 3
  • 14
0
votes
0 answers

Generating self signed certificate dedicated to encrytion/decryption with the algorithm RSA-OAEP using openssl

I am facing the following issue. I am currently working on integrating Single Sign-On (SSO) functionality into an existing application using the SAML Java toolkit. The Identity Provider (IdP) I am working with requires me to have an encryption…
amitakCs
  • 355
  • 9
  • 25
0
votes
1 answer

Wrap AES key with RSA public key - CKM_RSA_PKCS_OAEP

I am using iaik pkcs11 java trying to wrap an AES key with RSA public key. Can someone please help me what is the issue with above params/code? I am trying to wrap an AES key with RSA public key. Getting issue as Mechanism invalid Mechanism…
0
votes
0 answers

OAEP Padding error occurs when C# decrypts data encrypted with RSA in NodeJS crypto module

I have created a C# Client and NodeJS Server that communicate with WebsocketsAnd I encrypted the message passing through the socket with RSAThe data encrypted by the client using the public key could be decrypted by the server, but the data…
Qwerty
  • 1
0
votes
0 answers

Rust openssl rsa OAEP Padding not working

I am playing around with RSA encryption and I have just been using the standard PCKS1 padding which works fine, but I would like to use the more advanced OAEP or PSS Padding schemes. But for some reason when I switch the constant from PCKS1 to…
0
votes
1 answer

JWE/JWT authentication with PHP

Last week we started to work with a new API of a provider. For authentication they request a JWE in the header of an https request. We have no experience with JWE, then we started to look information about it, to devolope it with PHP. After many…
lmontiel
  • 9
  • 2
0
votes
0 answers

How to use test vector in OPENSSL library RSA-OAEP

Hello i use this function for cryptography: int RSA_public_encrypt(int flen, const unsigned char *from,unsigned char *to, RSA *rsa, int padding); https://www.openssl.org/docs/manmaster/man3/RSA_public_encrypt.html I set padding…
0
votes
1 answer

Encryption/Decryption with bouncycastle-java and RSAES-OAEP

I am not an expert with encryption, but i am trying to create an CMSEnvelopedDataGenerator with bouncycastle 1.67, where the session key is encrypted with RSAES-OAEP (1.2.840.113549.1.1.7) For now my code looks like this: CMSEnvelopedDataGenerator…
Skully
  • 485
  • 4
  • 13
0
votes
1 answer

Encrypt text with RSA/ECB/OAEPWithMD5AndMGF1Padding in C#

We have been asked to encrypt text with following encryption method RSA/ECB/OAEPWithMD5AndMGF1Padding. While defining the OAEP padding we are only allowed to define one hash function(MD5) and I could not find any way to define the other hash…
Falansh
  • 1
  • 2
1
2