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

Add cryptographic functions with option to specify custom functions #197

Merged
merged 11 commits into from
Nov 25, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Nov 22, 2024

This adds cryptographic functions like hmacSha512, pbkdf2Sha512, with the option to use a custom implementation of these functions. This can be beneficial in environments like React Native, where the native implementation may be much faster than the JavaScript fallback.

These functions will now also use the Web Crypto API if available, which in itself results in a good performance improvement compared to the JavaScript functions.

Closes #195.

@Mrtenz Mrtenz force-pushed the mrtenz/custom-cryptographic-functions branch from d315849 to 5ea04e3 Compare November 22, 2024 14:42
@Mrtenz Mrtenz force-pushed the mrtenz/custom-cryptographic-functions branch from 5ea04e3 to 23e05b3 Compare November 22, 2024 14:48
src/cryptography.ts Outdated Show resolved Hide resolved
src/cryptography.ts Outdated Show resolved Hide resolved
src/cryptography.ts Show resolved Hide resolved
src/derivers/bip39.ts Show resolved Hide resolved
@Mrtenz Mrtenz force-pushed the mrtenz/custom-cryptographic-functions branch from 06220fe to 4de9613 Compare November 25, 2024 11:34
Mrtenz and others added 2 commits November 25, 2024 13:47
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
@Mrtenz Mrtenz marked this pull request as ready for review November 25, 2024 12:54
@Mrtenz Mrtenz requested a review from a team as a code owner November 25, 2024 12:54
@Mrtenz Mrtenz merged commit 9b93d34 into main Nov 25, 2024
17 checks passed
@Mrtenz Mrtenz deleted the mrtenz/custom-cryptographic-functions branch November 25, 2024 13:38
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.

Allow specifying custom hashing functions
2 participants