CppSecurity
1.1.2.0
C++ Security Library
Loading...
Searching...
No Matches
include
security
cipher.inl
Go to the documentation of this file.
1
9
namespace
CppSecurity
{
10
11
template
<
class
TOutputStream>
12
inline
TOutputStream&
operator<<
(TOutputStream& stream,
CipherAlgorithm
algorithm)
13
{
14
switch
(algorithm)
15
{
16
case
CipherAlgorithm::AES128
:
17
stream <<
"AES128"
;
18
break
;
19
case
CipherAlgorithm::AES192
:
20
stream <<
"AES192"
;
21
break
;
22
case
CipherAlgorithm::AES256
:
23
stream <<
"AES256"
;
24
break
;
25
case
CipherAlgorithm::ARIA128
:
26
stream <<
"ARIA128"
;
27
break
;
28
case
CipherAlgorithm::ARIA192
:
29
stream <<
"ARIA192"
;
30
break
;
31
case
CipherAlgorithm::ARIA256
:
32
stream <<
"ARIA256"
;
33
break
;
34
case
CipherAlgorithm::Camellia128
:
35
stream <<
"Camellia128"
;
36
break
;
37
case
CipherAlgorithm::Camellia192
:
38
stream <<
"Camellia192"
;
39
break
;
40
case
CipherAlgorithm::Camellia256
:
41
stream <<
"Camellia256"
;
42
break
;
43
default
:
44
stream <<
"<unknown>"
;
45
break
;
46
}
47
return
stream;
48
}
49
50
}
// namespace CppSecurity
CppSecurity
Definition
cipher.h:18
CppSecurity::operator<<
TOutputStream & operator<<(TOutputStream &stream, CipherAlgorithm algorithm)
Definition
cipher.inl:12
CppSecurity::CipherAlgorithm
CipherAlgorithm
Cipher algorithm.
Definition
cipher.h:22
CppSecurity::CipherAlgorithm::ARIA128
@ ARIA128
CppSecurity::CipherAlgorithm::Camellia192
@ Camellia192
CppSecurity::CipherAlgorithm::Camellia128
@ Camellia128
CppSecurity::CipherAlgorithm::Camellia256
@ Camellia256
CppSecurity::CipherAlgorithm::AES256
@ AES256
CppSecurity::CipherAlgorithm::AES192
@ AES192
CppSecurity::CipherAlgorithm::AES128
@ AES128
CppSecurity::CipherAlgorithm::ARIA192
@ ARIA192
CppSecurity::CipherAlgorithm::ARIA256
@ ARIA256
Generated by
1.9.8