diff options
Diffstat (limited to 'src/lib/libcrypto/hmac')
| -rw-r--r-- | src/lib/libcrypto/hmac/hmac.h | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/hmac/hmac_local.h | 11 |
2 files changed, 11 insertions, 12 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.h b/src/lib/libcrypto/hmac/hmac.h index 2f91f55f9b..0fe894e7b1 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.14 2021/12/12 21:35:47 tb Exp $ */ | 1 | /* $OpenBSD: hmac.h,v 1.15 2022/01/14 08:04:14 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 | * |
| @@ -72,16 +72,6 @@ | |||
| 72 | extern "C" { | 72 | extern "C" { |
| 73 | #endif | 73 | #endif |
| 74 | 74 | ||
| 75 | /* Move to hmac_local.h */ | ||
| 76 | struct hmac_ctx_st { | ||
| 77 | const EVP_MD *md; | ||
| 78 | EVP_MD_CTX md_ctx; | ||
| 79 | EVP_MD_CTX i_ctx; | ||
| 80 | EVP_MD_CTX o_ctx; | ||
| 81 | unsigned int key_length; | ||
| 82 | unsigned char key[HMAC_MAX_MD_CBLOCK]; | ||
| 83 | } /* HMAC_CTX */; | ||
| 84 | |||
| 85 | #define HMAC_size(e) (EVP_MD_size(HMAC_CTX_get_md((e)))) | 75 | #define HMAC_size(e) (EVP_MD_size(HMAC_CTX_get_md((e)))) |
| 86 | 76 | ||
| 87 | HMAC_CTX *HMAC_CTX_new(void); | 77 | HMAC_CTX *HMAC_CTX_new(void); |
diff --git a/src/lib/libcrypto/hmac/hmac_local.h b/src/lib/libcrypto/hmac/hmac_local.h index 46f1a013cb..8358d9fa8b 100644 --- a/src/lib/libcrypto/hmac/hmac_local.h +++ b/src/lib/libcrypto/hmac/hmac_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: hmac_local.h,v 1.1 2021/12/12 21:27:38 tb Exp $ */ | 1 | /* $OpenBSD: hmac_local.h,v 1.2 2022/01/14 08:04:14 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 | * |
| @@ -66,6 +66,15 @@ | |||
| 66 | 66 | ||
| 67 | __BEGIN_HIDDEN_DECLS | 67 | __BEGIN_HIDDEN_DECLS |
| 68 | 68 | ||
| 69 | struct hmac_ctx_st { | ||
| 70 | const EVP_MD *md; | ||
| 71 | EVP_MD_CTX md_ctx; | ||
| 72 | EVP_MD_CTX i_ctx; | ||
| 73 | EVP_MD_CTX o_ctx; | ||
| 74 | unsigned int key_length; | ||
| 75 | unsigned char key[HMAC_MAX_MD_CBLOCK]; | ||
| 76 | } /* HMAC_CTX */; | ||
| 77 | |||
| 69 | __END_HIDDEN_DECLS | 78 | __END_HIDDEN_DECLS |
| 70 | 79 | ||
| 71 | #endif /* !HEADER_HMAC_LOCAL_H */ | 80 | #endif /* !HEADER_HMAC_LOCAL_H */ |
