]>
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 | |
289b714b | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
3aa8dc6c LQ |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef __AES_CORE_H__\r | |
10 | #define __AES_CORE_H__\r | |
11 | \r | |
12 | /**\r | |
13 | Encrypts one single block data (128 bits) with AES algorithm.\r | |
14 | \r | |
15 | @param[in] Key AES symmetric key buffer.\r | |
16 | @param[in] InData One block of input plaintext to be encrypted.\r | |
17 | @param[out] OutData Encrypted output ciphertext.\r | |
18 | \r | |
19 | @retval EFI_SUCCESS AES Block Encryption succeeded.\r | |
20 | @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r | |
21 | \r | |
22 | **/\r | |
23 | EFI_STATUS\r | |
24 | EFIAPI\r | |
25 | AesEncrypt (\r | |
26 | IN UINT8 *Key,\r | |
27 | IN UINT8 *InData,\r | |
28 | OUT UINT8 *OutData\r | |
29 | );\r | |
30 | \r | |
31 | #endif // __AES_CORE_H__\r |