aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-08-05 22:01:13 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-08-05 22:01:44 +0200
commitb6f739c13b972b8468bea1e919426dce8a65cdc3 (patch)
treeb0d8214221913a38c6121a39f3da2246762abdcf /src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
parent7da1f4a0ffebd22018b37a7d5533b1cfc2105d49 (diff)
downloadstrongswan-b6f739c13b972b8468bea1e919426dce8a65cdc3.tar.bz2
strongswan-b6f739c13b972b8468bea1e919426dce8a65cdc3.tar.xz
support of SHA224-based certificate signatures
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c')
-rw-r--r--src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
index f5e749dba..4d9c88c6d 100644
--- a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
+++ b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c
@@ -188,6 +188,8 @@ static bool verify(private_gcrypt_rsa_public_key_t *this,
return verify_pkcs1(this, HASH_MD5, "md5", data, signature);
case SIGN_RSA_EMSA_PKCS1_SHA1:
return verify_pkcs1(this, HASH_SHA1, "sha1", data, signature);
+ case SIGN_RSA_EMSA_PKCS1_SHA224:
+ return verify_pkcs1(this, HASH_SHA224, "sha224", data, signature);
case SIGN_RSA_EMSA_PKCS1_SHA256:
return verify_pkcs1(this, HASH_SHA256, "sha256", data, signature);
case SIGN_RSA_EMSA_PKCS1_SHA384: