Page MenuHomeFreeBSD

Truncate HMAC output only if requested by the client
ClosedPublic

Authored by bsz_semihalf.com on May 5 2016, 10:17 AM.
Tags
None
Referenced Files
F148169363: D6218.diff
Mon, Mar 16, 6:05 AM
Unknown Object (File)
Sun, Mar 15, 9:33 AM
Unknown Object (File)
Thu, Mar 5, 12:28 PM
Unknown Object (File)
Thu, Mar 5, 12:45 AM
Unknown Object (File)
Tue, Mar 3, 7:51 PM
Unknown Object (File)
Tue, Mar 3, 3:29 PM
Unknown Object (File)
Jan 6 2026, 10:50 AM
Unknown Object (File)
Dec 31 2025, 4:07 PM
Subscribers

Details

Summary

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:
Reviewed by:

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bsz_semihalf.com retitled this revision from to Truncate HMAC output only if requested by the client.
bsz_semihalf.com updated this object.
bsz_semihalf.com edited the test plan for this revision. (Show Details)
bsz_semihalf.com added reviewers: ian, ARM.
bsz_semihalf.com set the repository for this revision to rS FreeBSD src repository - subversion.
This revision was automatically updated to reflect the committed changes.