]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/RandomNumberGenerator/RngDxe/AesCore.h
BaseTools: Library hashing fix and optimization for --hash feature
[mirror_edk2.git] / SecurityPkg / RandomNumberGenerator / RngDxe / AesCore.h
1 /** @file
2 Function prototype for AES Block Cipher support.
3
4 Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef __AES_CORE_H__
10 #define __AES_CORE_H__
11
12 /**
13 Encrypts one single block data (128 bits) with AES algorithm.
14
15 @param[in] Key AES symmetric key buffer.
16 @param[in] InData One block of input plaintext to be encrypted.
17 @param[out] OutData Encrypted output ciphertext.
18
19 @retval EFI_SUCCESS AES Block Encryption succeeded.
20 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
21
22 **/
23 EFI_STATUS
24 EFIAPI
25 AesEncrypt (
26 IN UINT8 *Key,
27 IN UINT8 *InData,
28 OUT UINT8 *OutData
29 );
30
31 #endif // __AES_CORE_H__