diff options
author | jsing <> | 2025-05-21 11:37:07 +0000 |
---|---|---|
committer | jsing <> | 2025-05-21 11:37:07 +0000 |
commit | 1a3804b5e0099f4dabf04f04cfcd6566f3f31fb0 (patch) | |
tree | cf01f1570a88330a082681d69484900241831c75 /src/lib | |
parent | 8fda1e4f8bb90cd582abc434013e111d186fdbc8 (diff) | |
download | openbsd-1a3804b5e0099f4dabf04f04cfcd6566f3f31fb0.tar.gz openbsd-1a3804b5e0099f4dabf04f04cfcd6566f3f31fb0.tar.bz2 openbsd-1a3804b5e0099f4dabf04f04cfcd6566f3f31fb0.zip |
Fix wrapping.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/modes/gcm128.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/lib/libcrypto/modes/gcm128.c b/src/lib/libcrypto/modes/gcm128.c index 84366234d6..0d34be95c9 100644 --- a/src/lib/libcrypto/modes/gcm128.c +++ b/src/lib/libcrypto/modes/gcm128.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gcm128.c,v 1.42 2025/05/21 03:57:59 jsing Exp $ */ | 1 | /* $OpenBSD: gcm128.c,v 1.43 2025/05/21 11:37:07 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -435,9 +435,8 @@ CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad, size_t len) | |||
435 | LCRYPTO_ALIAS(CRYPTO_gcm128_aad); | 435 | LCRYPTO_ALIAS(CRYPTO_gcm128_aad); |
436 | 436 | ||
437 | int | 437 | int |
438 | CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, | 438 | CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, const unsigned char *in, |
439 | const unsigned char *in, unsigned char *out, | 439 | unsigned char *out, size_t len) |
440 | size_t len) | ||
441 | { | 440 | { |
442 | unsigned int n, ctr; | 441 | unsigned int n, ctr; |
443 | size_t i; | 442 | size_t i; |
@@ -572,9 +571,8 @@ CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, | |||
572 | LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt); | 571 | LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt); |
573 | 572 | ||
574 | int | 573 | int |
575 | CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, | 574 | CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, const unsigned char *in, |
576 | const unsigned char *in, unsigned char *out, | 575 | unsigned char *out, size_t len) |
577 | size_t len) | ||
578 | { | 576 | { |
579 | unsigned int n, ctr; | 577 | unsigned int n, ctr; |
580 | size_t i; | 578 | size_t i; |
@@ -714,9 +712,8 @@ CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, | |||
714 | LCRYPTO_ALIAS(CRYPTO_gcm128_decrypt); | 712 | LCRYPTO_ALIAS(CRYPTO_gcm128_decrypt); |
715 | 713 | ||
716 | int | 714 | int |
717 | CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx, | 715 | CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx, const unsigned char *in, |
718 | const unsigned char *in, unsigned char *out, | 716 | unsigned char *out, size_t len, ctr128_f stream) |
719 | size_t len, ctr128_f stream) | ||
720 | { | 717 | { |
721 | unsigned int n, ctr; | 718 | unsigned int n, ctr; |
722 | size_t i; | 719 | size_t i; |
@@ -788,9 +785,8 @@ CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx, | |||
788 | LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt_ctr32); | 785 | LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt_ctr32); |
789 | 786 | ||
790 | int | 787 | int |
791 | CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx, | 788 | CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx, const unsigned char *in, |
792 | const unsigned char *in, unsigned char *out, | 789 | unsigned char *out, size_t len, ctr128_f stream) |
793 | size_t len, ctr128_f stream) | ||
794 | { | 790 | { |
795 | unsigned int n, ctr; | 791 | unsigned int n, ctr; |
796 | size_t i; | 792 | size_t i; |