change computer

This commit is contained in:
didier.amyot committed 2014-11-09 13:18:32 -08:00
1 parent 52a13b9cab
commit 6b3c99664c
7 files changed
+97 -11

No files matched your search

+12
View File
@@ -48,6 +48,12 @@ func TestGetAcceptedContract(t *testing.T) {
pubCtr.AcceptedBlockCypherModes = []string{"ofb"}
prvCtr.AcceptedBlockCypherModes = []string{"ofb"}
pubCtr.AcceptedAsynchronousEncryptionScheme = []string{"rsa_oaep"}
prvCtr.AcceptedAsynchronousEncryptionScheme = []string{"rsa_oaep"}
pubCtr.AcceptedSignatureScheme = []string{"rsa_pss"}
prvCtr.AcceptedSignatureScheme = []string{"rsa_pss"}
ac, err := GetAcceptedContract(prvCtr, pubCtr)
if err != nil {
t.Error(err)
@@ -59,5 +65,11 @@ func TestGetAcceptedContract(t *testing.T) {
if ac.BlockCipher != "aes" {
t.Error("bad block cipher")
}
if ac.SignatureScheme != "rsa_pss" {
t.Error("bad signature scheme")
}
if ac.AsynchronousEncryptionScheme != "rsa_oaep" {
t.Error("bad asynchronous encryption scheme")
}
}