From ad581bb959dcf30fe9de3f7102c3aef79c618d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meusel?= Date: Tue, 3 Dec 2024 09:00:06 +0100 Subject: [PATCH] Deprecate uint8_t* based KDF APIs --- src/lib/kdf/kdf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/kdf/kdf.h b/src/lib/kdf/kdf.h index 15a97e914b..3fce79b43c 100644 --- a/src/lib/kdf/kdf.h +++ b/src/lib/kdf/kdf.h @@ -63,6 +63,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF { * @param label purpose for the derived keying material * @param label_len size of label in bytes */ + BOTAN_DEPRECATED("Use KDF::derive_key") void kdf(uint8_t key[], size_t key_len, const uint8_t secret[], @@ -86,6 +87,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF { * @return the derived key */ template > + BOTAN_DEPRECATED("Use std::span or std::string_view overloads") T derive_key(size_t key_len, const uint8_t secret[], size_t secret_len, @@ -157,6 +159,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF { * @return the derived key */ template > + BOTAN_DEPRECATED("Use std::span or std::string_view overloads") T derive_key(size_t key_len, std::span secret, const uint8_t salt[], @@ -175,6 +178,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF { * @return the derived key */ template > + BOTAN_DEPRECATED("Use std::span or std::string_view overloads") T derive_key(size_t key_len, const uint8_t secret[], size_t secret_len,