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.

56 lines
914 B

  1. Package blake256
  2. =====================
  3. import "github.com/dchest/blake256"
  4. Package blake256 implements BLAKE-256 and BLAKE-224 hash functions (SHA-3
  5. candidate).
  6. Public domain.
  7. Constants
  8. ---------
  9. ``` go
  10. const BlockSize = 64
  11. ```
  12. The block size of the hash algorithm in bytes.
  13. ``` go
  14. const Size = 32
  15. ```
  16. The size of BLAKE-256 hash in bytes.
  17. ``` go
  18. const Size224 = 28
  19. ```
  20. The size of BLAKE-224 hash in bytes.
  21. Functions
  22. ---------
  23. ### func New
  24. func New() hash.Hash
  25. New returns a new hash.Hash computing the BLAKE-256 checksum.
  26. ### func New224
  27. func New224() hash.Hash
  28. New224 returns a new hash.Hash computing the BLAKE-224 checksum.
  29. ### func New224Salt
  30. func New224Salt(salt []byte) hash.Hash
  31. New224Salt is like New224 but initializes salt with the given 16-byte slice.
  32. ### func NewSalt
  33. func NewSalt(salt []byte) hash.Hash
  34. NewSalt is like New but initializes salt with the given 16-byte slice.