Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
crypto::cipher::ecb_t Class Reference
Inheritance diagram for crypto::cipher::ecb_t:
[legend]
Collaboration diagram for crypto::cipher::ecb_t:
[legend]

Public Member Functions

 ecb_t (ecb_t &&) noexcept=default
ecb_t & operator= (ecb_t &&) noexcept=default
 ecb_t (const aes_t &key, bool padding=true)
int encrypt (const std::string_view &plaintext, std::vector< std::uint8_t > &cipher)
int decrypt (const std::string_view &cipher, std::vector< std::uint8_t > &plaintext)

Additional Inherited Members

Public Attributes inherited from crypto::cipher::cipher_t
cipher_ctx_t decrypt_ctx
cipher_ctx_t encrypt_ctx
aes_t key
bool padding

Detailed Description

Definition at line 169 of file crypto.h.

Constructor & Destructor Documentation

◆ ecb_t()

crypto::cipher::ecb_t::ecb_t ( const aes_t & key,
bool padding = true )

Definition at line 334 of file crypto.cpp.

Member Function Documentation

◆ decrypt()

int crypto::cipher::ecb_t::decrypt ( const std::string_view & cipher,
std::vector< std::uint8_t > & plaintext )

Definition at line 219 of file crypto.cpp.

◆ encrypt()

int crypto::cipher::ecb_t::encrypt ( const std::string_view & plaintext,
std::vector< std::uint8_t > & cipher )

Definition at line 246 of file crypto.cpp.


The documentation for this class was generated from the following files: