Home | History | Annotate | Download | only in test

Lines Matching defs:options

124 // options adds additional options for a test.
125 type options struct {
142 func makeTestCase(length int, options options) (*testCase, error) {
211 if options.omitMAC {
218 if options.noPadding {
225 if options.extraPadding || options.maximalPadding {
226 if options.extraPadding {
250 if options.wrongPadding {
251 if options.wrongPaddingOffset >= paddingLen {
254 sealed[len(sealed)-paddingLen+options.wrongPaddingOffset]++
300 func addTestCase(length int, options options) {
301 t, err := makeTestCase(length, options)
332 addTestCase(5, options{extraPadding: true})
335 addTestCase(5, options{wrongPadding: true})
343 addTestCase(64-hash.Size(), options{noPadding: true})
346 addTestCase(64-hash.Size(), options{maximalPadding: true})
349 addTestCase(0, options{omitMAC: true, maximalPadding: true})
353 addTestCase(64-hash.Size(), options{
363 addTestCase(l, options{})