diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/hmac/hmac.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c index 047b67b9ea..ea3a1b4a45 100644 --- a/src/lib/libcrypto/hmac/hmac.c +++ b/src/lib/libcrypto/hmac/hmac.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: hmac.c,v 1.30 2022/11/26 16:08:53 tb Exp $ */ | 1 | /* $OpenBSD: hmac.c,v 1.31 2023/02/16 08:38:17 tb 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 | * |
| @@ -134,7 +134,7 @@ HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md, | |||
| 134 | err: | 134 | err: |
| 135 | return 0; | 135 | return 0; |
| 136 | } | 136 | } |
| 137 | LCRYPTO_ALIAS(HMAC_Init_ex) | 137 | LCRYPTO_ALIAS(HMAC_Init_ex); |
| 138 | 138 | ||
| 139 | int | 139 | int |
| 140 | HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md) | 140 | HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md) |
| @@ -152,7 +152,7 @@ HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) | |||
| 152 | 152 | ||
| 153 | return EVP_DigestUpdate(&ctx->md_ctx, data, len); | 153 | return EVP_DigestUpdate(&ctx->md_ctx, data, len); |
| 154 | } | 154 | } |
| 155 | LCRYPTO_ALIAS(HMAC_Update) | 155 | LCRYPTO_ALIAS(HMAC_Update); |
| 156 | 156 | ||
| 157 | int | 157 | int |
| 158 | HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) | 158 | HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) |
| @@ -175,7 +175,7 @@ HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) | |||
| 175 | err: | 175 | err: |
| 176 | return 0; | 176 | return 0; |
| 177 | } | 177 | } |
| 178 | LCRYPTO_ALIAS(HMAC_Final) | 178 | LCRYPTO_ALIAS(HMAC_Final); |
| 179 | 179 | ||
| 180 | HMAC_CTX * | 180 | HMAC_CTX * |
| 181 | HMAC_CTX_new(void) | 181 | HMAC_CTX_new(void) |
| @@ -189,7 +189,7 @@ HMAC_CTX_new(void) | |||
| 189 | 189 | ||
| 190 | return ctx; | 190 | return ctx; |
| 191 | } | 191 | } |
| 192 | LCRYPTO_ALIAS(HMAC_CTX_new) | 192 | LCRYPTO_ALIAS(HMAC_CTX_new); |
| 193 | 193 | ||
| 194 | void | 194 | void |
| 195 | HMAC_CTX_free(HMAC_CTX *ctx) | 195 | HMAC_CTX_free(HMAC_CTX *ctx) |
| @@ -201,7 +201,7 @@ HMAC_CTX_free(HMAC_CTX *ctx) | |||
| 201 | 201 | ||
| 202 | free(ctx); | 202 | free(ctx); |
| 203 | } | 203 | } |
| 204 | LCRYPTO_ALIAS(HMAC_CTX_free) | 204 | LCRYPTO_ALIAS(HMAC_CTX_free); |
| 205 | 205 | ||
| 206 | int | 206 | int |
| 207 | HMAC_CTX_reset(HMAC_CTX *ctx) | 207 | HMAC_CTX_reset(HMAC_CTX *ctx) |
| @@ -236,7 +236,7 @@ HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) | |||
| 236 | err: | 236 | err: |
| 237 | return 0; | 237 | return 0; |
| 238 | } | 238 | } |
| 239 | LCRYPTO_ALIAS(HMAC_CTX_copy) | 239 | LCRYPTO_ALIAS(HMAC_CTX_copy); |
| 240 | 240 | ||
| 241 | void | 241 | void |
| 242 | HMAC_CTX_cleanup(HMAC_CTX *ctx) | 242 | HMAC_CTX_cleanup(HMAC_CTX *ctx) |
| @@ -254,14 +254,14 @@ HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags) | |||
| 254 | EVP_MD_CTX_set_flags(&ctx->o_ctx, flags); | 254 | EVP_MD_CTX_set_flags(&ctx->o_ctx, flags); |
| 255 | EVP_MD_CTX_set_flags(&ctx->md_ctx, flags); | 255 | EVP_MD_CTX_set_flags(&ctx->md_ctx, flags); |
| 256 | } | 256 | } |
| 257 | LCRYPTO_ALIAS(HMAC_CTX_set_flags) | 257 | LCRYPTO_ALIAS(HMAC_CTX_set_flags); |
| 258 | 258 | ||
| 259 | const EVP_MD * | 259 | const EVP_MD * |
| 260 | HMAC_CTX_get_md(const HMAC_CTX *ctx) | 260 | HMAC_CTX_get_md(const HMAC_CTX *ctx) |
| 261 | { | 261 | { |
| 262 | return ctx->md; | 262 | return ctx->md; |
| 263 | } | 263 | } |
| 264 | LCRYPTO_ALIAS(HMAC_CTX_get_md) | 264 | LCRYPTO_ALIAS(HMAC_CTX_get_md); |
| 265 | 265 | ||
| 266 | unsigned char * | 266 | unsigned char * |
| 267 | HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, | 267 | HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, |
| @@ -290,4 +290,4 @@ err: | |||
| 290 | HMAC_CTX_cleanup(&c); | 290 | HMAC_CTX_cleanup(&c); |
| 291 | return NULL; | 291 | return NULL; |
| 292 | } | 292 | } |
| 293 | LCRYPTO_ALIAS(HMAC) | 293 | LCRYPTO_ALIAS(HMAC); |
