You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
707 B

  1. package keccak
  2. import (
  3. "hash"
  4. )
  5. // NewSHA3224 returns a new hash.Hash computing SHA3-224 as specified in the FIPS 202 draft.
  6. func NewSHA3224() hash.Hash {
  7. return newKeccak(224*2, 224, domainSHA3)
  8. }
  9. // NewSHA3256 returns a new hash.Hash computing SHA3-256 as specified in the FIPS 202 draft.
  10. func NewSHA3256() hash.Hash {
  11. return newKeccak(256*2, 256, domainSHA3)
  12. }
  13. // NewSHA3384 returns a new hash.Hash computing SHA3-384 as specified in the FIPS 202 draft.
  14. func NewSHA3384() hash.Hash {
  15. return newKeccak(384*2, 384, domainSHA3)
  16. }
  17. // NewSHA3512 returns a new hash.Hash computing SHA3-512 as specified in the FIPS 202 draft.
  18. func NewSHA3512() hash.Hash {
  19. return newKeccak(512*2, 512, domainSHA3)
  20. }