diff options
Diffstat (limited to 'src/lib/libcrypto/evp/e_gost2814789.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_gost2814789.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/e_gost2814789.c b/src/lib/libcrypto/evp/e_gost2814789.c index b880c66954..f4b903b913 100644 --- a/src/lib/libcrypto/evp/e_gost2814789.c +++ b/src/lib/libcrypto/evp/e_gost2814789.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_gost2814789.c,v 1.8 2022/09/04 13:55:39 jsing Exp $ */ | 1 | /* $OpenBSD: e_gost2814789.c,v 1.9 2022/09/06 06:17:11 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -213,7 +213,7 @@ gost2814789_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned | |||
213 | chunk = inl; | 213 | chunk = inl; |
214 | 214 | ||
215 | while (inl && inl >= chunk) { | 215 | while (inl && inl >= chunk) { |
216 | Gost2814789_cfb64_encrypt(in, out, (long)inl, &((EVP_GOST2814789_CTX *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); | 216 | Gost2814789_cfb64_encrypt(in, out, inl, &((EVP_GOST2814789_CTX *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); |
217 | inl -= chunk; | 217 | inl -= chunk; |
218 | in += chunk; | 218 | in += chunk; |
219 | out += chunk; | 219 | out += chunk; |
@@ -231,7 +231,7 @@ gost2814789_cnt_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | |||
231 | EVP_GOST2814789_CTX *c = ctx->cipher_data; | 231 | EVP_GOST2814789_CTX *c = ctx->cipher_data; |
232 | 232 | ||
233 | while (inl >= EVP_MAXCHUNK) { | 233 | while (inl >= EVP_MAXCHUNK) { |
234 | Gost2814789_cnt_encrypt(in, out, (long)EVP_MAXCHUNK, &c->ks, | 234 | Gost2814789_cnt_encrypt(in, out, EVP_MAXCHUNK, &c->ks, |
235 | ctx->iv, ctx->buf, &ctx->num); | 235 | ctx->iv, ctx->buf, &ctx->num); |
236 | inl -= EVP_MAXCHUNK; | 236 | inl -= EVP_MAXCHUNK; |
237 | in += EVP_MAXCHUNK; | 237 | in += EVP_MAXCHUNK; |