CppSecurity
1.1.2.0
C++ Security Library
Loading...
Searching...
No Matches
include
security
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
;
19
case
PBKDF2::HMAC_SHA256
:
20
stream <<
"HMAC-SHA256"
;
21
break
;
22
case
PBKDF2::HMAC_SHA512
:
23
stream <<
"HMAC-SHA512"
;
24
break
;
25
default
:
26
stream <<
"<unknown>"
;
27
break
;
28
}
29
return
stream;
30
}
31
32
}
// namespace CppSecurity
CppSecurity
Definition
cipher.h:18
CppSecurity::operator<<
TOutputStream & operator<<(TOutputStream &stream, CipherAlgorithm algorithm)
Definition
cipher.inl:12
CppSecurity::PBKDF2
PBKDF2
'PBKDF2' algorithm
Definition
password_hashing_pbkdf2.h:18
CppSecurity::PBKDF2::HMAC_SHA1
@ HMAC_SHA1
HMAC-SHA1.
CppSecurity::PBKDF2::HMAC_SHA256
@ HMAC_SHA256
HMAC-SHA256.
CppSecurity::PBKDF2::HMAC_SHA512
@ HMAC_SHA512
HMAC-SHA512.
Generated by
1.9.8