| /* |
| * drivers/amlogic/unifykey/v7/key_storage/crypto_api.h |
| * |
| * Copyright (C) 2017 Amlogic, Inc. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation; either version 2 of the License, or |
| * (at your option) any later version. |
| * |
| * This program is distributed in the hope that it will be useful, but WITHOUT |
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| * more details. |
| * |
| */ |
| |
| #ifndef _CRYPTO_API_H_ |
| #define _CRYPTO_API_H_ |
| |
| int do_aes_internal(unsigned char bEncryptFlag, unsigned char *pIN, |
| int nINLen, unsigned char *pOUT, int *pOUTLen); |
| int sha256(uint8_t *in, uint32_t len, unsigned char output[32]); |
| |
| #endif |