Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestBlockGeneric (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top