diff options
Diffstat (limited to 'src/lib/libcrypto/evp/e_chacha20poly1305.c')
| -rw-r--r-- | src/lib/libcrypto/evp/e_chacha20poly1305.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/e_chacha20poly1305.c b/src/lib/libcrypto/evp/e_chacha20poly1305.c index 674a323258..450264846b 100644 --- a/src/lib/libcrypto/evp/e_chacha20poly1305.c +++ b/src/lib/libcrypto/evp/e_chacha20poly1305.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_chacha20poly1305.c,v 1.25 2022/08/30 19:33:26 tb Exp $ */ | 1 | /* $OpenBSD: e_chacha20poly1305.c,v 1.26 2022/09/13 04:59:18 jsing Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
| @@ -530,14 +530,12 @@ chacha20_poly1305_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | |||
| 530 | return len; | 530 | return len; |
| 531 | } | 531 | } |
| 532 | 532 | ||
| 533 | static int | 533 | static void |
| 534 | chacha20_poly1305_cleanup(EVP_CIPHER_CTX *ctx) | 534 | chacha20_poly1305_cleanup(EVP_CIPHER_CTX *ctx) |
| 535 | { | 535 | { |
| 536 | struct chacha20_poly1305_ctx *cpx = ctx->cipher_data; | 536 | struct chacha20_poly1305_ctx *cpx = ctx->cipher_data; |
| 537 | 537 | ||
| 538 | explicit_bzero(cpx, sizeof(*cpx)); | 538 | explicit_bzero(cpx, sizeof(*cpx)); |
| 539 | |||
| 540 | return 1; | ||
| 541 | } | 539 | } |
| 542 | 540 | ||
| 543 | static int | 541 | static int |
