Skip to content

Commit

Permalink
sha2: expose more aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 10, 2023
1 parent ceaa76f commit ee055bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sha2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Usually you either use sha256, or sha512. We re-export them as sha2 for naming consistency.
export { sha256, sha224 } from './sha256.js';
export { sha512, sha512_224, sha512_256, sha384 } from './sha512.js';
export { sha256, sha224, sha256 as sha2_256, sha224 as sha2_224 } from './sha256.js';
// prettier-ignore
export {
sha512, sha512_224, sha512_256, sha384,
sha512 as sha2_512, sha512_224 as sha2_512_224, sha512_256 as sha2_512_256, sha384 as sha2_384
} from './sha512.js';

0 comments on commit ee055bd

Please sign in to comment.