Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/crypto/internal/hpke/hpke_test.go

    	_ "crypto/sha256"
    	_ "crypto/sha512"
    )
    
    func mustDecodeHex(t *testing.T, in string) []byte {
    	b, err := hex.DecodeString(in)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return b
    }
    
    func parseVectorSetup(vector string) map[string]string {
    	vals := map[string]string{}
    	for _, l := range strings.Split(vector, "\n") {
    		fields := strings.Split(l, ": ")
    		vals[fields[0]] = fields[1]
    	}
    	return vals
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top