CppSecurity 1.1.2.0
C++ Security Library
Loading...
Searching...
No Matches
password_hashing_pbkdf2.inl
Go to the documentation of this file.
1
9namespace CppSecurity {
10
11template <class TOutputStream>
12inline TOutputStream& operator<<(TOutputStream& stream, PBKDF2 algorithm)
13{
14 switch (algorithm)
15 {
17 stream << "HMAC-SHA1";
18 break;
20 stream << "HMAC-SHA256";
21 break;
23 stream << "HMAC-SHA512";
24 break;
25 default:
26 stream << "<unknown>";
27 break;
28 }
29 return stream;
30}
31
32} // namespace CppSecurity
TOutputStream & operator<<(TOutputStream &stream, CipherAlgorithm algorithm)
Definition cipher.inl:12
PBKDF2
'PBKDF2' algorithm
@ HMAC_SHA1
HMAC-SHA1.
@ HMAC_SHA256
HMAC-SHA256.
@ HMAC_SHA512
HMAC-SHA512.