]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/RandomNumberGenerator/RngDxe/AesCore.h
SecurityPkg: Tcg2Dxe: Report correct FinalEventLog size
[mirror_edk2.git] / SecurityPkg / RandomNumberGenerator / RngDxe / AesCore.h
CommitLineData
3aa8dc6c
LQ
1/** @file\r
2 Function prototype for AES Block Cipher support.\r
3\r
4Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __AES_CORE_H__\r
16#define __AES_CORE_H__\r
17\r
18/**\r
19 Encrypts one single block data (128 bits) with AES algorithm.\r
20\r
21 @param[in] Key AES symmetric key buffer.\r
22 @param[in] InData One block of input plaintext to be encrypted.\r
23 @param[out] OutData Encrypted output ciphertext.\r
24\r
25 @retval EFI_SUCCESS AES Block Encryption succeeded.\r
26 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
27\r
28**/\r
29EFI_STATUS\r
30EFIAPI\r
31AesEncrypt (\r
32 IN UINT8 *Key,\r
33 IN UINT8 *InData,\r
34 OUT UINT8 *OutData\r
35 );\r
36\r
37#endif // __AES_CORE_H__\r