Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBlockGeneric (0.14 sec)

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