Correctly estimate the initial MTU for legacy packets.

This commit is contained in:
Guus Sliepen 2015-01-10 23:00:51 +01:00
parent 0e65326047
commit 0209f12d27
3 changed files with 27 additions and 0 deletions

View file

@ -79,6 +79,13 @@ size_t cipher_keylength(const cipher_t *cipher) {
return cipher->cipher->key_len + cipher->cipher->iv_len;
}
size_t cipher_blocksize(const cipher_t *cipher) {
if(!cipher || !cipher->cipher)
return 1;
return cipher->cipher->block_size;
}
bool cipher_set_key(cipher_t *cipher, void *key, bool encrypt) {
bool result;