| /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| * arch/arm/include/asm/hw_aes.h |
| * Copyright (C) 2020 Amlogic, Inc. All rights reserved. |
| #endif /* __AP_DMA_H__ */ |
| * @param key A pointer to the key buffer |
| * @param iv Byte length of iv buffer |
| * @param ct A pointer to the source buffer |
| * @param pt A pointer to the target buffer |
| * @param size Byte length of source buffer |
| * @param AEStype 128: aes128 192: aes192 256: aes256 |
| * @param CryptMode 1: encrypt 0: decrypt |
| int aes_cbc_crypt(uint8_t *key, uint8_t *iv, |
| uint8_t *ct, uint8_t *pt, uint32_t size, uint16_t AEStype,uint8_t CryptMode); |