aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-05-30 05:48:47 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-05-30 05:48:47 +0800
commit6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c (patch)
tree40410ee3e0c0a373909bd10aac4a0ef475cffb51
parentcdea71ee335760b0f9cb8422dd995176cf6bdc5f (diff)
downloaddexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.tar
dexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.tar.gz
dexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.tar.bz2
dexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.tar.lz
dexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.tar.xz
dexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.tar.zst
dexon-bls-6d7c5863b165b3a5e6bc415d533b5a5f4d674b0c.zip
rename blsSecretKeySetByHash to blsSecretKeySetToHashOf
-rw-r--r--include/bls/bls_if.h2
-rw-r--r--src/bls_if.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/bls/bls_if.h b/include/bls/bls_if.h
index c36ad70..2e81ad2 100644
--- a/include/bls/bls_if.h
+++ b/include/bls/bls_if.h
@@ -101,7 +101,7 @@ BLS_DLL_API size_t blsSecretKeyGetLittleEndian(void *buf, size_t maxBufSize, con
/*
hash buf and set
*/
-BLS_DLL_API int blsSecretKeySetByHash(blsSecretKey *sec, const void *buf, size_t bufSize);
+BLS_DLL_API int blsSecretKeySetToHashOf(blsSecretKey *sec, const void *buf, size_t bufSize);
/*
set secretKey if system has /dev/urandom or CryptGenRandom
return 0 if success else -1
diff --git a/src/bls_if.cpp b/src/bls_if.cpp
index 9d0c6ce..192a45d 100644
--- a/src/bls_if.cpp
+++ b/src/bls_if.cpp
@@ -140,7 +140,7 @@ size_t blsSecretKeyGetHexStr(char *buf, size_t maxBufSize, const blsSecretKey *s
return getStrT<bls::SecretKey, blsSecretKey>(sec, buf, maxBufSize, 16);
}
-int blsSecretKeySetByHash(blsSecretKey *sec, const void *buf, size_t bufSize)
+int blsSecretKeySetToHashOf(blsSecretKey *sec, const void *buf, size_t bufSize)
try
{
std::string s = mcl::fp::hash(384, (const char *)buf, bufSize);