Commit message (Expand) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not use GStrings any more. Added assertion code. Cosmetic reformating | bertrand | 1999-07-15 | 1 | -1/+1 |
* | Initial revision | Bertrand Guiheneuf | 1999-04-18 | 1 | -0/+1 |
![]() |
index : gsoc2013-evolution | |
Google Summer of Code 2013 - GNOME - Archive Integration workspace |
aboutsummaryrefslogtreecommitdiffstats |
Commit message (Expand) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not use GStrings any more. Added assertion code. Cosmetic reformating | bertrand | 1999-07-15 | 1 | -1/+1 |
* | Initial revision | Bertrand Guiheneuf | 1999-04-18 | 1 | -0/+1 |
-rw-r--r-- | test/bls_test.cpp | 20 |
diff --git a/test/bls_test.cpp b/test/bls_test.cpp index 64c04c2..dd948b4 100644 --- a/test/bls_test.cpp +++ b/test/bls_test.cpp @@ -163,7 +163,7 @@ CYBOZU_TEST_AUTO(k_of_n) } } -CYBOZU_TEST_AUTO(verifier) +CYBOZU_TEST_AUTO(MasterPublicKey) { const int n = 6; const int k = 3; @@ -182,3 +182,21 @@ CYBOZU_TEST_AUTO(verifier) } streamTest(mpk); } + +CYBOZU_TEST_AUTO(add) +{ + bls::PrivateKey prv1, prv2; + prv1.init(); + prv2.init(); + CYBOZU_TEST_ASSERT(prv1 != prv2); + + bls::PublicKey pub1, pub2; + prv1.getPublicKey(pub1); + prv2.getPublicKey(pub2); + + const std::string m = "doremi"; + bls::Sign s1, s2; + prv1.sign(s1, m); + prv2.sign(s2, m); + CYBOZU_TEST_ASSERT((pub1 + pub2).verify(s1 + s2, m)); +} |