Search Options

Results per page
Sort
Preferred Languages
Advance

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

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