1e5b75505Sopenharmony_ci/*
2e5b75505Sopenharmony_ci * SHA384 hash implementation and interface functions
3e5b75505Sopenharmony_ci * Copyright (c) 2015-2017, Jouni Malinen <j@w1.fi>
4e5b75505Sopenharmony_ci *
5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license.
6e5b75505Sopenharmony_ci * See README for more details.
7e5b75505Sopenharmony_ci */
8e5b75505Sopenharmony_ci
9e5b75505Sopenharmony_ci#ifndef SHA384_H
10e5b75505Sopenharmony_ci#define SHA384_H
11e5b75505Sopenharmony_ci
12e5b75505Sopenharmony_ci#define SHA384_MAC_LEN 48
13e5b75505Sopenharmony_ci
14e5b75505Sopenharmony_ciint hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
15e5b75505Sopenharmony_ci		       const u8 *addr[], const size_t *len, u8 *mac);
16e5b75505Sopenharmony_ciint hmac_sha384(const u8 *key, size_t key_len, const u8 *data,
17e5b75505Sopenharmony_ci		size_t data_len, u8 *mac);
18e5b75505Sopenharmony_ciint sha384_prf(const u8 *key, size_t key_len, const char *label,
19e5b75505Sopenharmony_ci	       const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
20e5b75505Sopenharmony_ciint sha384_prf_bits(const u8 *key, size_t key_len, const char *label,
21e5b75505Sopenharmony_ci		    const u8 *data, size_t data_len, u8 *buf,
22e5b75505Sopenharmony_ci		    size_t buf_len_bits);
23e5b75505Sopenharmony_ciint tls_prf_sha384(const u8 *secret, size_t secret_len,
24e5b75505Sopenharmony_ci		   const char *label, const u8 *seed, size_t seed_len,
25e5b75505Sopenharmony_ci		   u8 *out, size_t outlen);
26e5b75505Sopenharmony_ciint hmac_sha384_kdf(const u8 *secret, size_t secret_len,
27e5b75505Sopenharmony_ci		    const char *label, const u8 *seed, size_t seed_len,
28e5b75505Sopenharmony_ci		    u8 *out, size_t outlen);
29e5b75505Sopenharmony_ci
30e5b75505Sopenharmony_ci#endif /* SHA384_H */
31