summaryrefslogtreecommitdiff
path: root/lib/accelerated/x86/sha-x86.h
blob: d96936663f806efd46736df1645d47815a341f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef GNUTLS_LIB_ACCELERATED_X86_SHA_X86_H
#define GNUTLS_LIB_ACCELERATED_X86_SHA_X86_H

#include <nettle/sha.h>

extern const struct nettle_hash x86_sha1;
extern const struct nettle_hash x86_sha224;
extern const struct nettle_hash x86_sha256;
extern const struct nettle_hash x86_sha384;
extern const struct nettle_hash x86_sha512;

void x86_sha1_update(struct sha1_ctx *ctx, size_t length, const uint8_t *data);
void x86_sha256_update(struct sha256_ctx *ctx, size_t length,
		       const uint8_t *data);
void x86_sha512_update(struct sha512_ctx *ctx, size_t length,
		       const uint8_t *data);

extern const gnutls_crypto_digest_st _gnutls_sha_x86_ssse3;
extern const gnutls_crypto_mac_st _gnutls_hmac_sha_x86_ssse3;

#endif /* GNUTLS_LIB_ACCELERATED_X86_SHA_X86_H */