CppSecurity  1.1.1.0
C++ Security Library
password_hashing_pbkdf2.inl
Go to the documentation of this file.
1 
9 namespace CppSecurity {
10 
11 template <class TOutputStream>
12 inline TOutputStream& operator<<(TOutputStream& stream, PBKDF2 algorithm)
13 {
14  switch (algorithm)
15  {
16  case PBKDF2::HMAC_SHA1:
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.