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,