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 9100a55 commit 378a62f
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 @@ -62,6 +62,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 @@ -85,6 +86,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 @@ -156,6 +158,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 @@ -174,6 +177,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 378a62f

Please sign in to comment.