diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/modes/modes.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/modes/modes.h b/src/lib/libcrypto/modes/modes.h index a532cb3f41..67ec7518d6 100644 --- a/src/lib/libcrypto/modes/modes.h +++ b/src/lib/libcrypto/modes/modes.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: modes.h,v 1.2 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: modes.h,v 1.3 2018/07/24 10:47:19 bcook Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2008 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2008 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -8,6 +8,10 @@ | |||
| 8 | 8 | ||
| 9 | #include <stddef.h> | 9 | #include <stddef.h> |
| 10 | 10 | ||
| 11 | #ifdef __cplusplus | ||
| 12 | extern "C" { | ||
| 13 | #endif | ||
| 14 | |||
| 11 | typedef void (*block128_f)(const unsigned char in[16], | 15 | typedef void (*block128_f)(const unsigned char in[16], |
| 12 | unsigned char out[16], | 16 | unsigned char out[16], |
| 13 | const void *key); | 17 | const void *key); |
| @@ -134,3 +138,7 @@ typedef struct xts128_context XTS128_CONTEXT; | |||
| 134 | 138 | ||
| 135 | int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], | 139 | int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], |
| 136 | const unsigned char *inp, unsigned char *out, size_t len, int enc); | 140 | const unsigned char *inp, unsigned char *out, size_t len, int enc); |
| 141 | |||
| 142 | #ifdef __cplusplus | ||
| 143 | } | ||
| 144 | #endif | ||
