jpayne@69
|
1 /*
|
jpayne@69
|
2 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
jpayne@69
|
3 *
|
jpayne@69
|
4 * Licensed under the OpenSSL license (the "License"). You may not use
|
jpayne@69
|
5 * this file except in compliance with the License. You can obtain a copy
|
jpayne@69
|
6 * in the file LICENSE in the source distribution or at
|
jpayne@69
|
7 * https://www.openssl.org/source/license.html
|
jpayne@69
|
8 */
|
jpayne@69
|
9
|
jpayne@69
|
10 #ifndef HEADER_HMAC_H
|
jpayne@69
|
11 # define HEADER_HMAC_H
|
jpayne@69
|
12
|
jpayne@69
|
13 # include <openssl/opensslconf.h>
|
jpayne@69
|
14
|
jpayne@69
|
15 # include <openssl/evp.h>
|
jpayne@69
|
16
|
jpayne@69
|
17 # if OPENSSL_API_COMPAT < 0x10200000L
|
jpayne@69
|
18 # define HMAC_MAX_MD_CBLOCK 128 /* Deprecated */
|
jpayne@69
|
19 # endif
|
jpayne@69
|
20
|
jpayne@69
|
21 #ifdef __cplusplus
|
jpayne@69
|
22 extern "C" {
|
jpayne@69
|
23 #endif
|
jpayne@69
|
24
|
jpayne@69
|
25 size_t HMAC_size(const HMAC_CTX *e);
|
jpayne@69
|
26 HMAC_CTX *HMAC_CTX_new(void);
|
jpayne@69
|
27 int HMAC_CTX_reset(HMAC_CTX *ctx);
|
jpayne@69
|
28 void HMAC_CTX_free(HMAC_CTX *ctx);
|
jpayne@69
|
29
|
jpayne@69
|
30 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
|
jpayne@69
|
31 const EVP_MD *md))
|
jpayne@69
|
32
|
jpayne@69
|
33 /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
jpayne@69
|
34 const EVP_MD *md, ENGINE *impl);
|
jpayne@69
|
35 /*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
|
jpayne@69
|
36 size_t len);
|
jpayne@69
|
37 /*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
|
jpayne@69
|
38 unsigned int *len);
|
jpayne@69
|
39 unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
|
jpayne@69
|
40 const unsigned char *d, size_t n, unsigned char *md,
|
jpayne@69
|
41 unsigned int *md_len);
|
jpayne@69
|
42 __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
|
jpayne@69
|
43
|
jpayne@69
|
44 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
|
jpayne@69
|
45 const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);
|
jpayne@69
|
46
|
jpayne@69
|
47 #ifdef __cplusplus
|
jpayne@69
|
48 }
|
jpayne@69
|
49 #endif
|
jpayne@69
|
50
|
jpayne@69
|
51 #endif
|