CppSecurity  1.1.1.0
C++ Security Library
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  {
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