|
Cipher Fayadh
Block cipher Feistel 128-bit dengan fungsi putaran sigma-delta
|
Interface block cipher 128-bit. More...
#include <cipher.hpp>
Public Member Functions | |
| virtual void | encrypt_block (const uint8_t *in, uint8_t *out) const =0 |
| Enkripsi satu blok. | |
| virtual void | decrypt_block (const uint8_t *in, uint8_t *out) const =0 |
| Dekripsi satu blok. | |
Interface block cipher 128-bit.
Mode operasi (ECB, CBC, CFB, OFB, CTR) hanya bergantung pada kelas ini, sehingga cipher lain bisa dipasang tanpa mengubah kode mode.
in dan out harus menunjuk ke BLOCK_SIZE byte. Keduanya boleh sama persis (in-place), tetapi tidak boleh overlap sebagian.
|
pure virtual |
Dekripsi satu blok.
| [in] | in | Ciphertext, BLOCK_SIZE byte. |
| [out] | out | Plaintext, BLOCK_SIZE byte. |
Implemented in CustomCipher.
|
pure virtual |
Enkripsi satu blok.
| [in] | in | Plaintext, BLOCK_SIZE byte. |
| [out] | out | Ciphertext, BLOCK_SIZE byte. |
Implemented in CustomCipher.