Public Types | |
| enum class | Operation : uint8_t { Encrypt , Decrypt } |
| using | InternalOpaque = OpaqueObject<InternalDefinition> |
Public Member Functions | |
| Cipher () | |
| Construct a session using the default native backend. | |
| Cipher (Backend backend) | |
| Construct a session using an explicitly selected backend. | |
| Cipher (const Cipher &)=delete | |
| Cipher (Cipher &&)=delete | |
| Cipher & | operator= (const Cipher &)=delete |
| Cipher & | operator= (Cipher &&)=delete |
| Result | start (CipherType type, Operation operation, Span< const uint8_t > key, Span< const uint8_t > iv) |
| Start a legacy AES-CBC PKCS#7 operation. | |
| Result | update (Span< const uint8_t > input, Span< uint8_t > output, size_t &bytesWritten) |
| Process the next chunk of bytes. | |
| Result | finish (Span< uint8_t > output, size_t &bytesWritten) |
| Finalize the operation and flush the remaining bytes / padding. | |
| void | reset () |
| Discard the current operation and clear library-owned session state. | |
| SC::Cryptography::Cipher::Cipher | ( | ) |
Construct a session using the default native backend.
|
explicit |
Construct a session using an explicitly selected backend.
| Result SC::Cryptography::Cipher::finish | ( | Span< uint8_t > | output, |
| size_t & | bytesWritten ) |
Finalize the operation and flush the remaining bytes / padding.
| void SC::Cryptography::Cipher::reset | ( | ) |
Discard the current operation and clear library-owned session state.
| Result SC::Cryptography::Cipher::start | ( | CipherType | type, |
| Operation | operation, | ||
| Span< const uint8_t > | key, | ||
| Span< const uint8_t > | iv ) |
Start a legacy AES-CBC PKCS#7 operation.
| Result SC::Cryptography::Cipher::update | ( | Span< const uint8_t > | input, |
| Span< uint8_t > | output, | ||
| size_t & | bytesWritten ) |
Process the next chunk of bytes.