Page MenuHomeFreeBSD

Use explicitly specified ivsize instead of blocksize, when we mean IV size.
ClosedPublic

Authored by ae on Jan 12 2015, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 27 2024, 6:11 PM
Unknown Object (File)
Dec 22 2023, 12:41 AM
Unknown Object (File)
Dec 20 2023, 12:09 AM
Unknown Object (File)
Nov 25 2023, 6:35 AM
Unknown Object (File)
Nov 23 2023, 2:05 AM
Unknown Object (File)
Nov 16 2023, 8:28 AM
Unknown Object (File)
Nov 6 2023, 6:25 PM
Unknown Object (File)
Oct 15 2023, 7:25 AM
Subscribers

Details

Summary

In r275732 was introduced new field in struct enc_xform ivsize and all
xform definitions were modified by copying blocksize value into ivsize.
Some encryption algorithms can use different IV size and block size,
and in preparation for adding them ESP implementation needs a small modification.

Also set ivsize = 0 in enc_xform_null and remove special handling for them.

Test Plan

Currently it affects nothing. I tested IPsec between patched and unpatched
host - ESP still works.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ae retitled this revision from to Use explicitly specified ivsize instead of blocksize, when we mean IV size..
ae updated this object.
ae edited the test plan for this revision. (Show Details)
ae added reviewers: jmg, eri, vanhu.

Can you please not commit this.
I have a patch which does all of this and more, including using AES-NI for IPsec.

I will submit for review by end of this week.

gnn requested changes to this revision.Jan 12 2015, 8:44 PM
gnn added a reviewer: gnn.
gnn added a subscriber: gnn.

I put this here as a hold until Ermal also puts up his patch.

Ermal, please put up your code for review and put the link to that review in a comment here.

This revision now requires changes to proceed.Jan 12 2015, 8:44 PM
In D1503#28407, @ae wrote:

Is there any news?

Well, there is now D2566, which I believe has parts of this change in it, but there is to be an updated patch soon too.

does rS285336 have all these changes in it?

gnn edited edge metadata.

Time to add this to the mix.

This revision is now accepted and ready to land.Jul 10 2015, 11:38 AM

has this been tested? This looks good otherwise.

Bump. Can this be committed?

This revision was automatically updated to reflect the committed changes.