diff options
author | Rebecca Cran <rebecca@nuviainc.com> | 2021-05-10 15:53:08 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-05-11 16:26:05 +0000 |
commit | 4e5ecdbac8bdf235b2072baa0c5e170cd9f57463 (patch) | |
tree | dfab7b8f283b9a4b4fc775fc6ef5592776ea88a4 /SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.h | |
parent | 9301e5644cef5a5234f71b178373dd508cabb9ee (diff) | |
download | edk2-4e5ecdbac8bdf235b2072baa0c5e170cd9f57463.tar.gz edk2-4e5ecdbac8bdf235b2072baa0c5e170cd9f57463.tar.bz2 edk2-4e5ecdbac8bdf235b2072baa0c5e170cd9f57463.zip |
SecurityPkg: Add support for RngDxe on AARCH64
AARCH64 support has been added to BaseRngLib via the optional
ARMv8.5 FEAT_RNG.
Refactor RngDxe to support AARCH64, note support for it in the
VALID_ARCHITECTURES line of RngDxe.inf and enable it in SecurityPkg.dsc.
Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.h')
-rw-r--r-- | SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.h b/SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.h new file mode 100644 index 0000000000..e07f90050a --- /dev/null +++ b/SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.h @@ -0,0 +1,31 @@ +/** @file
+ Function prototype for AES Block Cipher support.
+
+Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef __AES_CORE_H__
+#define __AES_CORE_H__
+
+/**
+ Encrypts one single block data (128 bits) with AES algorithm.
+
+ @param[in] Key AES symmetric key buffer.
+ @param[in] InData One block of input plaintext to be encrypted.
+ @param[out] OutData Encrypted output ciphertext.
+
+ @retval EFI_SUCCESS AES Block Encryption succeeded.
+ @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
+
+**/
+EFI_STATUS
+EFIAPI
+AesEncrypt (
+ IN UINT8 *Key,
+ IN UINT8 *InData,
+ OUT UINT8 *OutData
+ );
+
+#endif // __AES_CORE_H__
|