|
Sunshine master
Self-hosted game stream host for Moonlight.
|
AES-ECB cipher helper used by pairing and stream encryption code. More...
#include <src/crypto.h>
Public Member Functions | |
| int | decrypt (const std::string_view &cipher, std::vector< std::uint8_t > &plaintext) |
| Decrypt ciphertext into the supplied plaintext buffer. | |
| ecb_t (const aes_t &key, bool padding=true) | |
| Construct an AES-ECB cipher helper with key material. | |
| ecb_t (ecb_t &&) noexcept=default | |
| Construct an AES-ECB cipher helper with key material. | |
| int | encrypt (const std::string_view &plaintext, std::vector< std::uint8_t > &cipher) |
| Encrypt plaintext into the supplied ciphertext buffer. | |
| ecb_t & | operator= (ecb_t &&) noexcept=default |
| Assign state from another instance while preserving ownership semantics. | |
Additional Inherited Members | |
Public Attributes inherited from crypto::cipher::cipher_t | |
| cipher_ctx_t | decrypt_ctx |
| Decrypt ctx. | |
| cipher_ctx_t | encrypt_ctx |
| Encrypt ctx. | |
| aes_t | key |
| AES key used by the cipher context. | |
| bool | padding |
| Enables block padding for the cipher. | |
AES-ECB cipher helper used by pairing and stream encryption code.
| crypto::cipher::ecb_t::ecb_t | ( | const aes_t & | key, |
| bool | padding = true ) |
Construct an AES-ECB cipher helper with key material.
| key | AES key material used to initialize the cipher. |
| padding | Whether the cipher should use block padding. |
| int crypto::cipher::ecb_t::decrypt | ( | const std::string_view & | cipher, |
| std::vector< std::uint8_t > & | plaintext ) |
Decrypt ciphertext into the supplied plaintext buffer.
| cipher | Ciphertext bytes to decrypt or output buffer for encryption. |
| plaintext | Plaintext bytes to encrypt. |
| int crypto::cipher::ecb_t::encrypt | ( | const std::string_view & | plaintext, |
| std::vector< std::uint8_t > & | cipher ) |
Encrypt plaintext into the supplied ciphertext buffer.
| plaintext | Plaintext bytes to encrypt. |
| cipher | Ciphertext bytes to decrypt or output buffer for encryption. |
Assign state from another instance while preserving ownership semantics.