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