summaryrefslogtreecommitdiff
path: root/src/sys/socket
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-09-07 23:37:26 +0000
committerGitHub <noreply@github.com>2021-09-07 23:37:26 +0000
commit630700eb7c525b461d8f32b591e39a786cc3e2a0 (patch)
tree9d74ace8e108bbec09888968bcbbcdd61c8c6fb7 /src/sys/socket
parent2142ec3c27f1c6a275aecc502b7fd3ee3bdaf08a (diff)
parente03e40095302b5e316aeb98d4fc02f19b1895965 (diff)
downloadnix-630700eb7c525b461d8f32b591e39a786cc3e2a0.zip
Merge #1317
1317: test_af_alg_aead waits indefinitely r=asomers a=ritzk Starting with linux kernel 4.9, the crypto interface changed slightly such that the authentication tag memory is only needed in the output buffer for encryption and in the input buffer for decryption. Thus, we have fewer bytes to read than the buffer size. Do not block on read. alternatively, we can adjust the decrypted buffer size based on kernel version ( ">= 4.9") to not include auth_size . ``` if kernel_version >= "4.9": let mut decrypted = vec![0u8; payload_len + (assoc_size as usize) ]; ``` before ``` test sys::test_socket::test_af_alg_aead ... test sys::test_socket::test_af_alg_aead has been running for over 60 seconds ``` after ``` test sys::test_socket::test_af_alg_aead ... ok ``` Co-authored-by: Ritesh Khadgaray <khadgaray@gmail.com>
Diffstat (limited to 'src/sys/socket')
0 files changed, 0 insertions, 0 deletions