sha512.js 1.3 KB

1234567891011121314151617181920212223242526
  1. /**
  2. * SHA2-512 a.k.a. sha512 and sha384. It is slower than sha256 in js because u64 operations are slow.
  3. *
  4. * Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and
  5. * [the paper on truncated SHA512/256](https://eprint.iacr.org/2010/548.pdf).
  6. * @module
  7. * @deprecated
  8. */
  9. import { SHA384 as SHA384n, sha384 as sha384n, sha512_224 as sha512_224n, SHA512_224 as SHA512_224n, sha512_256 as sha512_256n, SHA512_256 as SHA512_256n, SHA512 as SHA512n, sha512 as sha512n, } from "./sha2.js";
  10. /** @deprecated Use import from `noble/hashes/sha2` module */
  11. export const SHA512 = SHA512n;
  12. /** @deprecated Use import from `noble/hashes/sha2` module */
  13. export const sha512 = sha512n;
  14. /** @deprecated Use import from `noble/hashes/sha2` module */
  15. export const SHA384 = SHA384n;
  16. /** @deprecated Use import from `noble/hashes/sha2` module */
  17. export const sha384 = sha384n;
  18. /** @deprecated Use import from `noble/hashes/sha2` module */
  19. export const SHA512_224 = SHA512_224n;
  20. /** @deprecated Use import from `noble/hashes/sha2` module */
  21. export const sha512_224 = sha512_224n;
  22. /** @deprecated Use import from `noble/hashes/sha2` module */
  23. export const SHA512_256 = SHA512_256n;
  24. /** @deprecated Use import from `noble/hashes/sha2` module */
  25. export const sha512_256 = sha512_256n;
  26. //# sourceMappingURL=sha512.js.map