- Sort Score
- Result 10 results
- Languages All
Results 21 - 27 of 27 for blockGeneric (0.15 sec)
-
src/crypto/sha1/sha1_test.go
} } // Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match. func TestBlockGeneric(t *testing.T) { if boring.Enabled { t.Skip("BoringCrypto doesn't expose digest") } for i := 1; i < 30; i++ { // arbitrary factor gen, asm := New().(*digest), New().(*digest) buf := make([]byte, BlockSize*i) rand.Read(buf) blockGeneric(gen, buf) block(asm, buf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 21:27:16 UTC 2023 - 18.3K bytes - Viewed (0) -
src/crypto/sha256/sha256_test.go
} } // Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match. func TestBlockGeneric(t *testing.T) { if boring.Enabled { t.Skip("BoringCrypto doesn't expose digest") } gen, asm := New().(*digest), New().(*digest) buf := make([]byte, BlockSize*20) // arbitrary factor rand.Read(buf) blockGeneric(gen, buf) block(asm, buf) if *gen != *asm {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 21:21:42 UTC 2023 - 34.8K bytes - Viewed (0) -
src/crypto/sha512/sha512_test.go
} } // Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match. func TestBlockGeneric(t *testing.T) { if boring.Enabled { t.Skip("BoringCrypto doesn't expose digest") } gen, asm := New().(*digest), New().(*digest) buf := make([]byte, BlockSize*20) // arbitrary factor rand.Read(buf) blockGeneric(gen, buf) block(asm, buf) if *gen != *asm {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 21:17:08 UTC 2023 - 105.6K bytes - Viewed (0) -
src/internal/chacha8rand/export_test.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package chacha8rand var Block = block var Block_generic = block_generic func Seed(s *State) [4]uint64 { return s.seed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 283 bytes - Viewed (0) -
src/internal/chacha8rand/rand_test.go
} Block(&seed, &b1, 4) Block_generic(&seed, &b2, 4) if !slices.Equal(b1[:], b2[:]) { var out bytes.Buffer fmt.Fprintf(&out, "%-18s %-18s\n", "block", "block_generic") for i := range b1 { suffix := "" if b1[i] != b2[i] { suffix = " mismatch!" } fmt.Fprintf(&out, "%#016x %#016x%s\n", b1[i], b2[i], suffix) } t.Errorf("block and block_generic disagree:\n%s", out.String()) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 9.4K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8_stub.s
// license that can be found in the LICENSE file. //go:build !amd64 && !arm64 #include "textflag.h" // func block(counter uint64, seed *[8]uint32, blocks *[16][4]uint32) TEXT ·block(SB), NOSPLIT, $0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:32:54 UTC 2023 - 338 bytes - Viewed (0) -
src/internal/chacha8rand/chacha8_generic.go
} func _() { // block and block_generic must have same type x := block x = block_generic _ = x } // block_generic is the non-assembly block implementation, // for use on systems without special assembly. // Even on such systems, it is quite fast: on GOOS=386, // ChaCha8 using this code generates random values faster than PCG-DXSM. func block_generic(seed *[4]uint64, buf *[32]uint64, counter uint32) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:32:54 UTC 2023 - 6.3K bytes - Viewed (0)