- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for TestBlockGeneric (0.31 sec)
-
src/crypto/sha1/fallback_test.go
//go:build s390x && !purego package sha1 import ( "fmt" "io" "testing" ) // Tests the fallback code path in case the optimized asm // implementation cannot be used. // See also TestBlockGeneric. func TestGenericPath(t *testing.T) { if !useAsm { t.Skipf("assembly implementation unavailable") } useAsm = false defer func() { useAsm = true }() c := New() in := "ΑΒΓΔΕϜΖΗΘΙΚΛΜΝΞΟΠϺϘΡΣΤΥΦΧΨΩ"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 853 bytes - Viewed (0) -
src/crypto/sha512/fallback_test.go
//go:build s390x && !purego package sha512 import ( "fmt" "io" "testing" ) // Tests the fallback code path in case the optimized asm // implementation cannot be used. // See also TestBlockGeneric. func TestGenericPath(t *testing.T) { if !useAsm { t.Skipf("assembly implementation unavailable") } useAsm = false defer func() { useAsm = true }() c := New() in := "ΑΒΓΔΕϜΖΗΘΙΚΛΜΝΞΟΠϺϘΡΣΤΥΦΧΨΩ"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 964 bytes - Viewed (0) -
src/crypto/sha256/fallback_test.go
//go:build s390x && !purego package sha256 import ( "fmt" "io" "testing" ) // Tests the fallback code path in case the optimized asm // implementation cannot be used. // See also TestBlockGeneric. func TestGenericPath(t *testing.T) { if useAsm == false { t.Skipf("assembly implementation unavailable") } useAsm = false defer func() { useAsm = true }() c := New()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 894 bytes - Viewed (0) -
src/internal/chacha8rand/rand_test.go
} } func BenchmarkBlock(b *testing.B) { var seed [4]uint64 var blocks [32]uint64 for i := 0; i < b.N; i++ { Block(&seed, &blocks, 0) } b.SetBytes(32 * 8) } func TestBlockGeneric(t *testing.T) { var b1, b2 [32]uint64 s := seed // byte seed seed := [4]uint64{ binary.LittleEndian.Uint64(s[0*8:]), binary.LittleEndian.Uint64(s[1*8:]), binary.LittleEndian.Uint64(s[2*8:]),
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/crypto/md5/md5_test.go
t.Fatalf("md5 TestLarge offset=%d, blockSize=%d = %s want %s", offset, blockSize, s, ok) } } } } // Tests that blockGeneric (pure Go) and block (in assembly for amd64, 386, arm) match. func TestBlockGeneric(t *testing.T) { 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: Thu Sep 23 16:54:46 UTC 2021 - 17.4K bytes - Viewed (0) -
src/cmd/internal/notsha256/sha256_test.go
if got := c.BlockSize(); got != BlockSize { t.Errorf("BlockSize = %d want %d", got, BlockSize) } } // Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match. func TestBlockGeneric(t *testing.T) { 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: Fri Apr 29 14:23:17 UTC 2022 - 16.2K bytes - Viewed (0) -
src/crypto/sha1/sha1_test.go
if got := c.BlockSize(); got != BlockSize { t.Errorf("BlockSize = %d; want %d", got, BlockSize) } } // 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)
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
if got := c.BlockSize(); got != BlockSize { t.Errorf("BlockSize = %d want %d", got, BlockSize) } } // 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)
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
if got := c.BlockSize(); got != BlockSize { t.Errorf("BlockSize = %d; want %d", got, BlockSize) } } // 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 21:17:08 UTC 2023 - 105.6K bytes - Viewed (0)