diff options
author | Qin Long <qin.long@intel.com> | 2016-11-01 10:38:36 +0800 |
---|---|---|
committer | Qin Long <qin.long@intel.com> | 2016-11-02 23:19:01 +0800 |
commit | a8f37449c7e355e6402e3876c9db9e11d875164f (patch) | |
tree | a8d55ff564d58125dd5381f95f9ca024ec8e67e8 /CryptoPkg/Application/Cryptest/Cryptest.h | |
parent | 72009c626d8b1c237c0de840e9bfe9d23b76b94c (diff) | |
download | edk2-platforms-a8f37449c7e355e6402e3876c9db9e11d875164f.tar.xz |
CryptoPkg: Add PKCS5 PBKDF2 interface for password derivation.
Add one new API (Pkcs5HashPassword) to provide PKCS#5 v2.0 PBKDF2
support (Password based encryption key derivation function, specified
in RFC 2898).
Also update the Cryptest utility to include the new API testing (with
the test vector from RFC6070).
Cc: Ting Ye <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qin Long <qin.long@intel.com>
Reviewed-by: Ting Ye <ting.ye@intel.com>
Diffstat (limited to 'CryptoPkg/Application/Cryptest/Cryptest.h')
-rw-r--r-- | CryptoPkg/Application/Cryptest/Cryptest.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/CryptoPkg/Application/Cryptest/Cryptest.h b/CryptoPkg/Application/Cryptest/Cryptest.h index 17b4224b65..9e3e0fb8bf 100644 --- a/CryptoPkg/Application/Cryptest/Cryptest.h +++ b/CryptoPkg/Application/Cryptest/Cryptest.h @@ -1,7 +1,7 @@ /** @file
Application for Cryptographic Primitives Validation.
-Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -85,6 +85,18 @@ ValidateCryptRsa2 ( );
/**
+ Validate UEFI-OpenSSL PKCS#5 PBKDF2 Interface.
+
+ @retval EFI_SUCCESS Validation succeeded.
+ @retval EFI_ABORTED Validation failed.
+
+**/
+EFI_STATUS
+ValidateCryptPkcs5Pbkdf2 (
+ VOID
+ );
+
+/**
Validate UEFI-OpenSSL PKCS#7 Signing & Verification Interfaces.
@retval EFI_SUCCESS Validation succeeded.
@@ -144,4 +156,4 @@ ValidateCryptPrng ( VOID
);
-#endif
\ No newline at end of file +#endif
|