Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testGCMNonce (0.1 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes_test.go

    		t.Error("unexpected counter state")
    	}
    }
    
    func TestGCMNonce(t *testing.T) {
    	t.Run("gcm", func(t *testing.T) {
    		testGCMNonce(t, newGCMTransformer, 0, func(_ int, nonce []byte) {
    			if bytes.Equal(nonce, make([]byte, len(nonce))) {
    				t.Error("got all zeros for nonce")
    			}
    		})
    	})
    
    	t.Run("gcm unsafe", func(t *testing.T) {
    		testGCMNonce(t, newGCMTransformerWithUniqueKeyUnsafeTest, 0, func(i int, nonce []byte) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 23.2K bytes
    - Viewed (0)
Back to top