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.

15 lines
431 B

  1. package keccak
  2. import (
  3. "hash"
  4. )
  5. // NewSHAKE128 returns a new hash.Hash computing SHAKE128 with a n*8 bit output as specified in the FIPS 202 draft.
  6. func NewSHAKE128(n int) hash.Hash {
  7. return newKeccak(128*2, n*8, domainSHAKE)
  8. }
  9. // NewSHAKE256 returns a new hash.Hash computing SHAKE256 with a n*8 bit output as specified in the FIPS 202 draft.
  10. func NewSHAKE256(n int) hash.Hash {
  11. return newKeccak(256*2, n*8, domainSHAKE)
  12. }