summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hmac/hmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/hmac/hmac.h')
-rw-r--r--src/lib/libcrypto/hmac/hmac.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.h b/src/lib/libcrypto/hmac/hmac.h
index f3418b3cb7..e787c62ac8 100644
--- a/src/lib/libcrypto/hmac/hmac.h
+++ b/src/lib/libcrypto/hmac/hmac.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: hmac.h,v 1.12 2014/06/21 13:39:46 jsing Exp $ */ 1/* $OpenBSD: hmac.h,v 1.13 2018/02/17 14:53:59 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -83,8 +83,10 @@ typedef struct hmac_ctx_st {
83 83
84#define HMAC_size(e) (EVP_MD_size((e)->md)) 84#define HMAC_size(e) (EVP_MD_size((e)->md))
85 85
86 86HMAC_CTX *HMAC_CTX_new(void);
87void HMAC_CTX_free(HMAC_CTX *ctx);
87void HMAC_CTX_init(HMAC_CTX *ctx); 88void HMAC_CTX_init(HMAC_CTX *ctx);
89int HMAC_CTX_reset(HMAC_CTX *ctx);
88void HMAC_CTX_cleanup(HMAC_CTX *ctx); 90void HMAC_CTX_cleanup(HMAC_CTX *ctx);
89 91
90#define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) /* deprecated */ 92#define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) /* deprecated */
@@ -100,6 +102,7 @@ unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
100int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); 102int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
101 103
102void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); 104void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
105const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);
103 106
104#ifdef __cplusplus 107#ifdef __cplusplus
105} 108}