aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);