Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDecrypt (0.05 sec)

  1. internal/etag/etag_test.go

    		ETag:      must("20000f00f2cc184414bc982927ec56abb7e18426faa205558982e9a8125c1370a9cf5754406e428b3343f21ee1125965"),
    		Plaintext: must("6d6cdccb9a7498c871bde8eab2f49141"),
    	},
    }
    
    func TestDecrypt(t *testing.T) {
    	for i, test := range decryptTests {
    		etag, err := Decrypt(test.Key, test.ETag)
    		if err != nil {
    			t.Fatalf("Test %d: failed to decrypt ETag: %v", i, err)
    		}
    		if !Equal(etag, test.Plaintext) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top