diff options
| author | jsing <> | 2018-02-17 14:53:59 +0000 |
|---|---|---|
| committer | jsing <> | 2018-02-17 14:53:59 +0000 |
| commit | fe31e083891620d38e67f59ea40fa3b92f6fcc48 (patch) | |
| tree | d253f3b4cf504cc55d56a675effcdec3d0020b97 /src/lib/libcrypto/hmac/hmac.h | |
| parent | 85302f6eb21057056417176ee1eee15c94edc1eb (diff) | |
| download | openbsd-fe31e083891620d38e67f59ea40fa3b92f6fcc48.tar.gz openbsd-fe31e083891620d38e67f59ea40fa3b92f6fcc48.tar.bz2 openbsd-fe31e083891620d38e67f59ea40fa3b92f6fcc48.zip | |
Provide HMAC_CTX_new(), HMAC_CTX_free(), HMAC_CTX_reset() and
HMAC_CTX_get_md().
Diffstat (limited to 'src/lib/libcrypto/hmac/hmac.h')
| -rw-r--r-- | src/lib/libcrypto/hmac/hmac.h | 7 |
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 | 86 | HMAC_CTX *HMAC_CTX_new(void); | |
| 87 | void HMAC_CTX_free(HMAC_CTX *ctx); | ||
| 87 | void HMAC_CTX_init(HMAC_CTX *ctx); | 88 | void HMAC_CTX_init(HMAC_CTX *ctx); |
| 89 | int HMAC_CTX_reset(HMAC_CTX *ctx); | ||
| 88 | void HMAC_CTX_cleanup(HMAC_CTX *ctx); | 90 | void 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, | |||
| 100 | int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); | 102 | int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); |
| 101 | 103 | ||
| 102 | void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); | 104 | void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); |
| 105 | const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx); | ||
| 103 | 106 | ||
| 104 | #ifdef __cplusplus | 107 | #ifdef __cplusplus |
| 105 | } | 108 | } |
