random.go 337 B

12345678910111213
  1. package kyber
  2. import (
  3. "crypto/cipher"
  4. )
  5. // Random is an interface that can be mixed in to local suite definitions.
  6. type Random interface {
  7. // RandomStream returns a cipher.Stream that produces a
  8. // cryptographically random key stream. The stream must
  9. // tolerate being used in multiple goroutines.
  10. RandomStream() cipher.Stream
  11. }