Correctly estimate the initial MTU for legacy packets.
This commit is contained in:
parent
0e65326047
commit
0209f12d27
3 changed files with 27 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue