- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for TestBlockGeneric (0.26 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/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)