forked from ARM-software/AArch64cryptolib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AArch64cryptolib_private.h
28 lines (24 loc) · 1.03 KB
/
AArch64cryptolib_private.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//Copyright (c) 2018-2019, ARM Limited. All rights reserved.
//
//SPDX-License-Identifier: BSD-3-Clause
#ifndef AARCH64CRYPTOLIB_PRIVATE_H
#define AARCH64CRYPTOLIB_PRIVATE_H
#include "AArch64cryptolib.h"
int sha1_block(uint8_t *init, const uint8_t *src, uint8_t *dst, uint64_t len);
int sha256_block(uint8_t *init, const uint8_t *src, uint8_t *dst, uint64_t len);
/*
* Assembly calls for AES-CBC/SHA interface
*/
int asm_aes128cbc_sha1_hmac(uint8_t *csrc, uint8_t *cdst, uint64_t clen,
uint8_t *dsrc, uint8_t *ddst, uint64_t dlen,
armv8_cipher_digest_t *arg);
int asm_aes128cbc_sha256_hmac(uint8_t *csrc, uint8_t *cdst, uint64_t clen,
uint8_t *dsrc, uint8_t *ddst, uint64_t dlen,
armv8_cipher_digest_t *arg);
int asm_sha1_hmac_aes128cbc_dec(uint8_t *csrc, uint8_t *cdst, uint64_t clen,
uint8_t *dsrc, uint8_t *ddst, uint64_t dlen,
armv8_cipher_digest_t *arg);
int asm_sha256_hmac_aes128cbc_dec(uint8_t *csrc, uint8_t *cdst, uint64_t clen,
uint8_t *dsrc, uint8_t *ddst, uint64_t dlen,
armv8_cipher_digest_t *arg);
#endif