| 1 |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 OR ISC |
| 3 |
|
| 4 |
#ifndef AWSLC_HEADER_HMAC_INTERNAL_H |
| 5 |
#define AWSLC_HEADER_HMAC_INTERNAL_H |
| 6 |
|
| 7 |
#include <openssl/base.h> |
| 8 |
|
| 9 |
#if defined(__cplusplus) |
| 10 |
extern "C" { |
| 11 |
#endif |
| 12 |
|
| 13 |
// HMAC_with_precompute is only used in FIPS ACVP harness, in order to test |
| 14 |
// the computation of HMAC using precomputed keys (internally). It should not |
| 15 |
// be used for any other purposes as it outputs the same results as |HMAC| and is |
| 16 |
// slower than |HMAC|. |
| 17 |
// This function does not update the FIPS service indicator. |
| 18 |
OPENSSL_EXPORT uint8_t *HMAC_with_precompute(const EVP_MD *evp_md, |
| 19 |
const void *key, size_t key_len, |
| 20 |
const uint8_t *data, |
| 21 |
size_t data_len, uint8_t *out, |
| 22 |
unsigned int *out_len); |
| 23 |
|
| 24 |
#if defined(__cplusplus) |
| 25 |
} // extern C |
| 26 |
#endif |
| 27 |
|
| 28 |
#endif // AWSLC_HEADER_HMAC_INTERNAL_H |