summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2025-05-21 11:37:07 +0000
committerjsing <>2025-05-21 11:37:07 +0000
commit1a3804b5e0099f4dabf04f04cfcd6566f3f31fb0 (patch)
treecf01f1570a88330a082681d69484900241831c75 /src/lib
parent8fda1e4f8bb90cd582abc434013e111d186fdbc8 (diff)
downloadopenbsd-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.c22
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)
435LCRYPTO_ALIAS(CRYPTO_gcm128_aad); 435LCRYPTO_ALIAS(CRYPTO_gcm128_aad);
436 436
437int 437int
438CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, 438CRYPTO_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,
572LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt); 571LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt);
573 572
574int 573int
575CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, 574CRYPTO_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,
714LCRYPTO_ALIAS(CRYPTO_gcm128_decrypt); 712LCRYPTO_ALIAS(CRYPTO_gcm128_decrypt);
715 713
716int 714int
717CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx, 715CRYPTO_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,
788LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt_ctr32); 785LCRYPTO_ALIAS(CRYPTO_gcm128_encrypt_ctr32);
789 786
790int 787int
791CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx, 788CRYPTO_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;