diff options
Diffstat (limited to 'src/lib/kdf')
-rw-r--r-- | src/lib/kdf/sp800_56c/sp800_56c.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/kdf/sp800_56c/sp800_56c.cpp b/src/lib/kdf/sp800_56c/sp800_56c.cpp index 544a650ea..4c7b61e0a 100644 --- a/src/lib/kdf/sp800_56c/sp800_56c.cpp +++ b/src/lib/kdf/sp800_56c/sp800_56c.cpp @@ -14,15 +14,15 @@ size_t SP800_56C::kdf(uint8_t key[], size_t key_len, const uint8_t salt[], size_t salt_len, const uint8_t label[], size_t label_len) const { - // Randomness Extraction - secure_vector< uint8_t > k_dk; + // Randomness Extraction + secure_vector<uint8_t> k_dk; - m_prf->set_key(salt, salt_len); - m_prf->update(secret, secret_len); - m_prf->final(k_dk); + m_prf->set_key(salt, salt_len); + m_prf->update(secret, secret_len); + m_prf->final(k_dk); - // Key Expansion - m_exp->kdf(key, key_len, k_dk.data(), k_dk.size(), nullptr, 0, label, label_len); + // Key Expansion + m_exp->kdf(key, key_len, k_dk.data(), k_dk.size(), nullptr, 0, label, label_len); return key_len; } |