Lines Matching refs:interface
17 type testInterface interface {
21 // testBlock implements the cipher.Block interface and any *Able
41 // testAEAD implements the cipher.AEAD interface.
50 // Test the gcmAble interface is detected correctly by the cipher package.
54 t.Fatalf("testBlock does not implement the gcmAble interface")
61 t.Fatalf("cipher.NewGCM did not use gcmAble interface")
65 // testBlockMode implements the cipher.BlockMode interface.
72 // Test the cbcEncAble interface is detected correctly by the cipher package.
76 t.Fatalf("testBlock does not implement the cbcEncAble interface")
80 t.Fatalf("cipher.NewCBCEncrypter did not use cbcEncAble interface")
84 // Test the cbcDecAble interface is detected correctly by the cipher package.
88 t.Fatalf("testBlock does not implement the cbcDecAble interface")
92 t.Fatalf("cipher.NewCBCDecrypter did not use cbcDecAble interface")
96 // testStream implements the cipher.Stream interface.
102 // Test the ctrAble interface is detected correctly by the cipher package.
106 t.Fatalf("testBlock does not implement the ctrAble interface")
110 t.Fatalf("cipher.NewCTR did not use ctrAble interface")