summaryrefslogtreecommitdiffstats
path: root/lib/accelerated/aarch64/sha-aarch64.h
blob: e5282b87a1261329ff4e394afaf5aad71a2c59d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef GNUTLS_LIB_ACCELERATED_AARCH64_SHA_AARCH64_H
#define GNUTLS_LIB_ACCELERATED_AARCH64_SHA_AARCH64_H

#include <nettle/sha.h>

extern const struct nettle_hash aarch64_sha1;
extern const struct nettle_hash aarch64_sha224;
extern const struct nettle_hash aarch64_sha256;
extern const struct nettle_hash aarch64_sha384;
extern const struct nettle_hash aarch64_sha512;

extern const gnutls_crypto_digest_st _gnutls_sha_aarch64;
extern const gnutls_crypto_mac_st _gnutls_hmac_sha_aarch64;

void aarch64_sha1_update(struct sha1_ctx *ctx, size_t length, const uint8_t * data);
void aarch64_sha256_update(struct sha256_ctx *ctx, size_t length, const uint8_t * data);
void aarch64_sha512_update(struct sha512_ctx *ctx, size_t length, const uint8_t * data);

#endif /* GNUTLS_LIB_ACCELERATED_AARCH64_SHA_AARCH64_H */