[PATCH] OAEP support
Daiki Ueno
ueno at unixuser.org
Tue Jun 30 05:53:21 CEST 2009
Hi,
The attached patch adds OAEP padding support to libgcrypt.
Here are some notes:
- Before encryption/decryption, it reads necessary parameters from
`flags'. For example,
(data
(flags oaep hash sha1 label "test")
(value #11223344556677889900AA#))
for encryption and,
(enc-data
(flags oaep hash sha1 label "test")
...)
for decryption.
- After decryption, it stores the decoded value as a `decoded' token
instead of `value', unlike other encodings (`raw' and `pkcs1'). This
is for backward compatibility. For example,
(decoded #11223344556677889900AA#)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oaep.diff
Type: text/x-diff
Size: 24992 bytes
Desc: not available
URL: </pipermail/attachments/20090630/e75b03d1/attachment-0001.diff>
-------------- next part --------------
Regards,
--
Daiki Ueno
More information about the Gcrypt-devel
mailing list