Does libgcrypt provide pkcs1 unpadding functionality?

Daiki Ueno ueno at
Thu May 12 03:51:39 CEST 2011

Foo Lum <etiquettesg at> writes:

> In the libgcrypt doco, it specifies that you can define an
> s-expression that allows for the data to be padded in PKCS#1 before
> being encrypted. Is there a another function or another expression I
> could build to unpad the data after it has been decrypted or is there
> some other work around to do this?

The current git master supports "unpad" flag (it was introduced along
with OAEP padding support yesterday).  The document should be updated I
guess...will try to do.

Daiki Ueno

More information about the Gcrypt-devel mailing list