diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-07 06:31:11 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-09-07 06:31:11 +0800 |
commit | 9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c (patch) | |
tree | 146abcdac0deeab5b6c42736031ad1bf8ed9dd63 /src | |
parent | aac66669fcb761f51bf2709d28d0c5753f08db95 (diff) | |
download | dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.tar dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.tar.gz dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.tar.bz2 dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.tar.lz dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.tar.xz dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.tar.zst dexon-bls-9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c.zip |
add SecretKey::setArray
Diffstat (limited to 'src')
-rw-r--r-- | src/bls_if.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bls_if.cpp b/src/bls_if.cpp index 6021c30..9054bb4 100644 --- a/src/bls_if.cpp +++ b/src/bls_if.cpp @@ -87,6 +87,10 @@ void blsSecretKeyPut(const blsSecretKey *sec) { std::cout << *(const bls::SecretKey*)sec << std::endl; } +void blsSecretKeySetArray(blsSecretKey *sec, const uint64_t *p) +{ + ((bls::SecretKey*)sec)->set(p); +} int blsSecretKeySetStr(blsSecretKey *sec, const char *buf, size_t bufSize) { |