summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/modes/cfb128.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/modes/cfb128.c')
-rw-r--r--src/lib/libcrypto/modes/cfb128.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/modes/cfb128.c b/src/lib/libcrypto/modes/cfb128.c
index f538a2b11c..931353a620 100644
--- a/src/lib/libcrypto/modes/cfb128.c
+++ b/src/lib/libcrypto/modes/cfb128.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cfb128.c,v 1.6 2023/07/08 14:55:36 beck Exp $ */ 1/* $OpenBSD: cfb128.c,v 1.7 2023/07/08 14:56:54 beck 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 *
@@ -177,6 +177,7 @@ CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
177 *num = n; 177 *num = n;
178 } 178 }
179} 179}
180LCRYPTO_ALIAS(CRYPTO_cfb128_encrypt);
180 181
181/* This expects a single block of size nbits for both in and out. Note that 182/* This expects a single block of size nbits for both in and out. Note that
182 it corrupts any extra bits in the last byte of out */ 183 it corrupts any extra bits in the last byte of out */
@@ -234,6 +235,7 @@ CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
234 ((d[0] & 0x80) >> (unsigned int)(n % 8)); 235 ((d[0] & 0x80) >> (unsigned int)(n % 8));
235 } 236 }
236} 237}
238LCRYPTO_ALIAS(CRYPTO_cfb128_1_encrypt);
237 239
238void 240void
239CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out, 241CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,
@@ -246,3 +248,4 @@ CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,
246 for (n = 0; n < length; ++n) 248 for (n = 0; n < length; ++n)
247 cfbr_encrypt_block(&in[n], &out[n], 8, key, ivec, enc, block); 249 cfbr_encrypt_block(&in[n], &out[n], 8, key, ivec, enc, block);
248} 250}
251LCRYPTO_ALIAS(CRYPTO_cfb128_8_encrypt);