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

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