summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c
diff options
context:
space:
mode:
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c')
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c
index d8cc9ba0e8..f85232bf6e 100644
--- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c
+++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c
@@ -42,6 +42,9 @@ CryptoNidToOpensslNid (
case CRYPTO_NID_SECP521R1:
Nid = NID_secp521r1;
break;
+ case CRYPTO_NID_BRAINPOOLP512R1:
+ Nid = NID_brainpoolP512r1;
+ break;
default:
return -1;
}
@@ -833,6 +836,9 @@ EcDsaSign (
case NID_secp521r1:
HalfSize = 66;
break;
+ case NID_brainpoolP512r1:
+ HalfSize = 64;
+ break;
default:
return FALSE;
}
@@ -961,6 +967,9 @@ EcDsaVerify (
case NID_secp521r1:
HalfSize = 66;
break;
+ case NID_brainpoolP512r1:
+ HalfSize = 64;
+ break;
default:
return FALSE;
}