diff options
Diffstat (limited to 'src/lib/libcrypto/modes/ctr128.c')
-rw-r--r-- | src/lib/libcrypto/modes/ctr128.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/modes/ctr128.c b/src/lib/libcrypto/modes/ctr128.c index 9dd8c0c55e..eadb80449c 100644 --- a/src/lib/libcrypto/modes/ctr128.c +++ b/src/lib/libcrypto/modes/ctr128.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ctr128.c,v 1.8 2022/11/26 16:08:53 tb Exp $ */ | 1 | /* $OpenBSD: ctr128.c,v 1.9 2022/12/26 07:18:52 jmc 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 | * |
@@ -109,7 +109,7 @@ ctr128_inc_aligned(unsigned char *counter) | |||
109 | * This algorithm assumes that the counter is in the x lower bits | 109 | * This algorithm assumes that the counter is in the x lower bits |
110 | * of the IV (ivec), and that the application has full control over | 110 | * of the IV (ivec), and that the application has full control over |
111 | * overflow and the rest of the IV. This implementation takes NO | 111 | * overflow and the rest of the IV. This implementation takes NO |
112 | * responsability for checking that the counter doesn't overflow | 112 | * responsibility for checking that the counter doesn't overflow |
113 | * into the rest of the IV when incremented. | 113 | * into the rest of the IV when incremented. |
114 | */ | 114 | */ |
115 | void CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out, | 115 | void CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out, |
@@ -228,7 +228,7 @@ void CRYPTO_ctr128_encrypt_ctr32(const unsigned char *in, unsigned char *out, | |||
228 | (*func)(in,out,blocks,key,ivec); | 228 | (*func)(in,out,blocks,key,ivec); |
229 | /* (*ctr) does not update ivec, caller does: */ | 229 | /* (*ctr) does not update ivec, caller does: */ |
230 | PUTU32(ivec+12,ctr32); | 230 | PUTU32(ivec+12,ctr32); |
231 | /* ... overflow was detected, propogate carry. */ | 231 | /* ... overflow was detected, propagate carry. */ |
232 | if (ctr32 == 0) ctr96_inc(ivec); | 232 | if (ctr32 == 0) ctr96_inc(ivec); |
233 | blocks *= 16; | 233 | blocks *= 16; |
234 | len -= blocks; | 234 | len -= blocks; |