Lines Matching refs:test
81 for _, test := range group.Tests {
82 test := test
84 if test.KeyLen < 8 {
85 … return nil, fmt.Errorf("key length must be at least 8 bits in test case %d/%d", group.ID, test.ID)
87 keyLen := uint32le(test.KeyLen)
89 salt, err := hex.DecodeString(test.Salt)
91 … return nil, fmt.Errorf("failed to decode hex salt in test case %d/%d: %s", group.ID, test.ID, err)
94 if test.IterationCount < 1 {
95 … return nil, fmt.Errorf("iteration count must be at least 1 in test case %d/%d", group.ID, test.ID)
97 iterationCount := uint32le(test.IterationCount)
99 msg := [][]byte{[]byte(group.HmacAlgo), keyLen, salt, []byte(test.Password), iterationCount}
102 ID: test.ID,