Cipher Interface
DESCRIPTION
This is the interface for cipher functions. It provides cipher registering and unregistering routines, encryption and decryption routines.
EXAMPLE
// Allocate AES-128 cipher in CBC mode SilcCipher aes; silc_cipher_alloc(SILC_CIPHER_AES_128_CBC, &aes); // Set key for encryption, key length must in bits silc_cipher_set_key(aes, key, key_len * 8, TRUE); // Set IV silc_cipher_set_iv(aes, iv); // Encrypt data silc_cipher_encrypt(aes, src, dst, len, NULL);
TABLE OF CONTENTS
- SilcCipher
- Ciphers
- Cipher-Algorithms
- SilcCipherMode
- silc_cipher_register
- silc_cipher_unregister
- silc_cipher_register_default
- silc_cipher_unregister_all
- silc_cipher_alloc
- silc_cipher_alloc_full
- silc_cipher_free
- silc_cipher_is_supported
- silc_cipher_get_supported
- silc_cipher_encrypt
- silc_cipher_decrypt
- silc_cipher_set_key
- silc_cipher_set_iv
- silc_cipher_get_iv
- silc_cipher_get_key_len
- silc_cipher_get_block_len
- silc_cipher_get_iv_len
- silc_cipher_get_name
- silc_cipher_get_alg_name
- silc_cipher_get_mode