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