]>
Commit | Line | Data |
---|---|---|
3aa8dc6c LQ |
1 | /** @file\r |
2 | Function prototype for AES Block Cipher support.\r | |
3 | \r | |
4 | Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
29 | EFI_STATUS\r | |
30 | EFIAPI\r | |
31 | AesEncrypt (\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 |