aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-08-27 17:03:04 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-08-27 17:03:04 +0800
commitea600930c3e920b75d15fa1bffe3d48d818a294b (patch)
tree50f9845ac43a8e79422cc253416e28f78c56ce38 /include
parentfec0cc33f5074e76764f87eaf6b26c7ed8bca5a4 (diff)
downloaddexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.tar
dexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.tar.gz
dexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.tar.bz2
dexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.tar.lz
dexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.tar.xz
dexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.tar.zst
dexon-bls-ea600930c3e920b75d15fa1bffe3d48d818a294b.zip
init by user defined p
Diffstat (limited to 'include')
-rw-r--r--include/bls.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/bls.hpp b/include/bls.hpp
index 2c4017e..be6d17d 100644
--- a/include/bls.hpp
+++ b/include/bls.hpp
@@ -41,6 +41,8 @@ class SecretKey;
class PublicKey;
class Sign;
+const size_t keySize = 32;
+
typedef std::vector<SecretKey> SecretKeyVec;
typedef std::vector<PublicKey> PublicKeyVec;
typedef std::vector<Sign> SignVec;
@@ -67,8 +69,9 @@ public:
friend std::istream& operator>>(std::istream& is, SecretKey& sec);
/*
make a secret key for id = 0
+ set p[keySize] if p != 0
*/
- void init();
+ void init(const uint64_t *p = 0);
void getPublicKey(PublicKey& pub) const;
void sign(Sign& sign, const std::string& m) const;
/*