hwaccel_ref.go 648 B

12345678910111213141516171819202122
  1. // hwaccel_ref.go - Unaccelerated stubs
  2. //
  3. // To the extent possible under law, Yawning Angel has waived all copyright
  4. // and related or neighboring rights to the software, using the Creative
  5. // Commons "CC0" public domain dedication. See LICENSE or
  6. // <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
  7. // +build !amd64 gccgo noasm !go1.10
  8. package hs1siv
  9. func initHardwareAcceleration() {
  10. forceDisableHardwareAcceleration()
  11. }
  12. func hashStep(ctx *hs1Ctx, in []byte, accum *[hs1HashRounds]uint64) {
  13. hashStepRef(ctx, in, accum)
  14. }
  15. func chachaXORKeyStream(s *chachaState, in, out []byte) {
  16. chachaXORKeyStreamRef(s, in, out)
  17. }