Closed bugadani closed 1 year ago
Typenum will still be useful for the foreseeable future because of the math demonstrated here isn't possible with const generics. Also there are a bunch of unstable features that could maybe make this PR nicer, but it is, what it is right now :)
Instead of a hardcoded 512 byte vector, use a buffer size appropriate for the actual CipherSuite instance.
I have made a few assumptions here but the 512 buffer was also an assumption, I assume :) If only I didn't need to use typenum here...