support for rsa-oaep and MGF with SHA1 and SHA384 digest method

24 views
Skip to first unread message

Timothy Legge

unread,
Mar 11, 2023, 8:19:57 AM3/11/23
to LibTom Projects
Hi

I am attempting to decrypt an  aes256-gcm session key in XML that was encrypted with rsa-oaep using a MGF of mgf1sha1 with a digest hash using sha384

Is this possible with libTom?

As far as I can see there is no method to specify the digest when doing a decrypt.

regards

Tim

g...@jaeckel.eu

unread,
Mar 11, 2023, 10:01:52 AM3/11/23
to Timothy Legge, lib...@googlegroups.com
Hi Tim,
That's not possible at the moment.

libtomcrypt currently only supports the same hash for the MGF and the Label.

Can you try out https://github.com/libtom/libtomcrypt/pull/612 and give
feedback whether that works for you?! Then I'll also add the encrypt part.

Cheers
Steffen

Timothy Legge

unread,
Mar 11, 2023, 8:24:30 PM3/11/23
to LibTom Projects
Hi

It does not work yes. I am getting a memory error.  

I will comment on the PR.

Tim
Reply all
Reply to author
Forward
0 new messages