diff options
Diffstat (limited to 'cipher/pkey-rsa.c')
-rw-r--r-- | cipher/pkey-rsa.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cipher/pkey-rsa.c b/cipher/pkey-rsa.c index fc1f6a30..1c9b3c48 100644 --- a/cipher/pkey-rsa.c +++ b/cipher/pkey-rsa.c @@ -62,6 +62,12 @@ _gcry_pkey_rsapss_sign (gcry_pkey_hd_t h, case GCRY_MD_SHA512: md_name = "sha512"; break; + case GCRY_MD_SHA512_224: + md_name = "sha512-224"; + break; + case GCRY_MD_SHA512_256: + md_name = "sha512-256"; + break; default: return gpg_error (GPG_ERR_INV_ARG); } @@ -154,6 +160,12 @@ _gcry_pkey_rsapss_verify (gcry_pkey_hd_t h, case GCRY_MD_SHA512: md_name = "sha512"; break; + case GCRY_MD_SHA512_224: + md_name = "sha512-224"; + break; + case GCRY_MD_SHA512_256: + md_name = "sha512-256"; + break; default: return gpg_error (GPG_ERR_INV_ARG); } |