Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify Digest.compress API to add an offset #21

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

05nelsonm
Copy link
Member

Closes #20

This PR modifies the Digest.compress function such that it now includes an offset.

THIS IS AN API BREAKING CHANGE, but only for implementors of Digest (i.e. KotlinCrypto/hash).

By including an offset: Int, this drastically increases performance as Digest no longer needs to array copy input into the buffer.

Will require a 0.2.0 release, as well as a version bump of hash and MACs repository.

A 0.2.0-SNAPSHOT is available from MavenCentral. The snapshot was also tested in the KotlinCrypto/hash repository with the API modification. Everything worked as expected.

@05nelsonm 05nelsonm self-assigned this Mar 28, 2023
@05nelsonm 05nelsonm merged commit c7fa986 into master Mar 28, 2023
@05nelsonm 05nelsonm deleted the issue/20-digest-compress branch March 28, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Digest performance issues
1 participant