Skip to content

Commit

Permalink
Deprecate uint8_t* based KDF APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Dec 3, 2024
1 parent 29fc82f commit 3214042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/kdf/kdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[],
Expand All @@ -86,6 +87,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF {
* @return the derived key
*/
template <concepts::resizable_byte_buffer T = secure_vector<uint8_t>>
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,
Expand Down Expand Up @@ -157,6 +159,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF {
* @return the derived key
*/
template <concepts::resizable_byte_buffer T = secure_vector<uint8_t>>
BOTAN_DEPRECATED("Use std::span or std::string_view overloads")
T derive_key(size_t key_len,
std::span<const uint8_t> secret,
const uint8_t salt[],
Expand All @@ -175,6 +178,7 @@ class BOTAN_PUBLIC_API(2, 0) KDF {
* @return the derived key
*/
template <concepts::resizable_byte_buffer T = secure_vector<uint8_t>>
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,
Expand Down

0 comments on commit 3214042

Please sign in to comment.