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#)
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#)