vt-middleware / cryptacular

The friendly complement to the BouncyCastle crypto API for Java.
Other
39 stars 7 forks source link

Use variable for computing buffer length. #60

Closed serac closed 2 years ago

serac commented 2 years ago

Base offset of truncate method on buffer size, which is directly related to the hash algorithm output size. Add test coverage using test vectors from RFC 6238, which covers SHA1, SHA256, and SHA512.

See https://github.com/vt-middleware/cryptacular/issues/59