Lines Matching refs:test
102 for _, test := range group.Tests {
103 test := test
105 if len(test.MsgHex)*4 != group.MsgBits {
106 …x message of length %d but specifies a bit length of %d", group.ID, test.ID, len(test.MsgHex), gro…
108 msg, err := hex.DecodeString(test.MsgHex)
110 return nil, fmt.Errorf("failed to decode hex in test case %d/%d: %s", group.ID, test.ID, err)
113 if len(test.KeyHex)*4 != group.KeyBits {
114 …s hex key of length %d but specifies a bit length of %d", group.ID, test.ID, len(test.KeyHex), gro…
116 key, err := hex.DecodeString(test.KeyHex)
118 return nil, fmt.Errorf("failed to decode key in test case %d/%d: %s", group.ID, test.ID, err)
128 ID: test.ID,