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.

16 lines
428 B

  1. package babyjub
  2. import (
  3. "github.com/dchest/blake512" // I have personally reviewed that this module doesn't do anything suspicious
  4. )
  5. // Blake512 performs the blake-512 hash over the buffer m. Note that this is
  6. // the original blake from the SHA3 competition and not the new blake2 version.
  7. func Blake512(m []byte) []byte {
  8. h := blake512.New()
  9. _, err := h.Write(m[:])
  10. if err != nil {
  11. panic(err)
  12. }
  13. return h.Sum(nil)
  14. }