Cipher text stealing will go away. Mark it for removal.
authortb <tb@openbsd.org>
Sun, 16 Apr 2023 08:14:34 +0000 (08:14 +0000)
committertb <tb@openbsd.org>
Sun, 16 Apr 2023 08:14:34 +0000 (08:14 +0000)
ok jsing

lib/libcrypto/modes/modes.h

index 67ec751..3c9557e 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: modes.h,v 1.3 2018/07/24 10:47:19 bcook Exp $ */
+/* $OpenBSD: modes.h,v 1.4 2023/04/16 08:14:34 tb Exp $ */
 /* ====================================================================
  * Copyright (c) 2008 The OpenSSL Project. All rights reserved.
  *
@@ -63,6 +63,7 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
                        unsigned char ivec[16], int *num,
                        int enc, block128_f block);
 
+#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
 size_t CRYPTO_cts128_encrypt_block(const unsigned char *in, unsigned char *out,
                        size_t len, const void *key,
                        unsigned char ivec[16], block128_f block);
@@ -88,6 +89,7 @@ size_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in, unsigned char *o
 size_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out,
                        size_t len, const void *key,
                        unsigned char ivec[16], cbc128_f cbc);
+#endif
 
 typedef struct gcm128_context GCM128_CONTEXT;