diff options
author | Daiki Ueno <ueno@unixuser.org> | 2011-05-17 17:47:30 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@unixuser.org> | 2011-05-18 15:35:20 +0900 |
commit | f28a2646a6f76762681cf1fdcab985939457e1d6 (patch) | |
tree | 6c4092af0d934ef7fca492c0b7040c9abd28f0a0 /doc | |
parent | e179813cfbc8bc90ae4b3d5dbabeb437ef57613b (diff) | |
download | libgcrypt-f28a2646a6f76762681cf1fdcab985939457e1d6.tar.gz |
Support PKCS#1 un-padding.
Support PKCS#1 un-padding for encryption (not for signature). This patch
also removes "unpad" flag (introduced by OAEP patch) since we can now
do un-padding implicitly when `pkcs1' or `oaep' is given.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gcrypt.texi | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi index e441263a..8bafc313 100644 --- a/doc/gcrypt.texi +++ b/doc/gcrypt.texi @@ -2328,6 +2328,8 @@ sub-S-expression named `flags'; the following flags are known: @table @code @item pkcs1 Use PKCS#1 block type 2 padding. +@item oaep +Use RSA-OAEP padding. @item no-blinding Do not use a technique called `blinding', which is used by default in order to prevent leaking of secret information. Blinding is only @@ -2429,8 +2431,17 @@ element: @end example @noindent -Note that this function currently does not know of any padding -methods and the caller must do any un-padding on his own. +This function does not remove padding from the data by default. To +let Libgcrypt remove padding, give a hint in `flags' telling which +padding method was used when encrypting: + +@example +(flags @var{padding-method}) +@end example + +@noindent +Currently @var{padding-method} is either @code{pkcs1} for PKCS#1 block +type 2 padding, or @code{oaep} for RSA-OAEP padding. @noindent The function returns 0 on success or an error code. The variable at the |