aboutsummaryrefslogtreecommitdiffstats
path: root/src/bls_if.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-09-07 06:31:11 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-09-07 06:31:11 +0800
commit9b6af7cbc8965c2f166f0979e1d64ec7369aaf9c (patch)
tree146abcdac0deeab5b6c42736031ad1bf8ed9dd63 /src/bls_if.cpp
parentaac66669fcb761f51bf2709d28d0c5753f08db95 (diff)
downloaddexon-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/bls_if.cpp')
-rw-r--r--src/bls_if.cpp4
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)
{