diff options
author | zbb <zbb@FreeBSD.org> | 2016-06-02 18:37:50 +0000 |
---|---|---|
committer | zbb <zbb@FreeBSD.org> | 2016-06-02 18:37:50 +0000 |
commit | 9682ecbee5ba7149a3b1de4ff2e5bf39c85d5ebc (patch) | |
tree | 297f0828d75b28b1d23c182ef6bad5e1f252bb8e /lib/libc/stdlib/rand.c | |
parent | f1fe5e60a7c3b37eccc78de804780b24fbc4eaf7 (diff) | |
download | FreeBSD-src-9682ecbee5ba7149a3b1de4ff2e5bf39c85d5ebc.zip FreeBSD-src-9682ecbee5ba7149a3b1de4ff2e5bf39c85d5ebc.tar.gz |
Truncate HMAC output only if requested by the client
The output of HMAC was previously truncated to 12 bytes. This was only
correct in case of one particular crypto client - the new version of IPSEC.
Fix by taking into account the cri_mlen field in cryptoini session request
filled in by the client.
Submitted by: Michal Stanek <mst@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential revision: https://reviews.freebsd.org/D6218
Diffstat (limited to 'lib/libc/stdlib/rand.c')
0 files changed, 0 insertions, 0 deletions