aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf/kdf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kdf/kdf.h')
-rw-r--r--src/lib/kdf/kdf.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/kdf/kdf.h b/src/lib/kdf/kdf.h
index b99a3a83c..dd4cfedf6 100644
--- a/src/lib/kdf/kdf.h
+++ b/src/lib/kdf/kdf.h
@@ -107,9 +107,9 @@ class BOTAN_PUBLIC_API(2,0) KDF
const std::string& label = "") const
{
return derive_key(key_len, secret.data(), secret.size(),
- reinterpret_cast<const uint8_t*>(salt.data()),
+ cast_char_ptr_to_uint8(salt.data()),
salt.length(),
- reinterpret_cast<const uint8_t*>(label.data()),
+ cast_char_ptr_to_uint8(label.data()),
label.length());
}
@@ -152,7 +152,7 @@ class BOTAN_PUBLIC_API(2,0) KDF
return derive_key(key_len,
secret.data(), secret.size(),
salt, salt_len,
- reinterpret_cast<const uint8_t*>(label.data()),
+ cast_char_ptr_to_uint8(label.data()),
label.size());
}
@@ -172,9 +172,9 @@ class BOTAN_PUBLIC_API(2,0) KDF
const std::string& label = "") const
{
return derive_key(key_len, secret, secret_len,
- reinterpret_cast<const uint8_t*>(salt.data()),
+ cast_char_ptr_to_uint8(salt.data()),
salt.length(),
- reinterpret_cast<const uint8_t*>(label.data()),
+ cast_char_ptr_to_uint8(label.data()),
label.length());
}