From 484e5a628ff25b9cfc8f6a46d60a0e855aef9b17 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 31 May 2017 05:53:21 +0900 Subject: rename blsHashToSecretKey --- include/bls/bls_if.h | 2 +- src/bls_if.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bls/bls_if.h b/include/bls/bls_if.h index 2e81ad2..7a25b54 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 blsSecretKeySetToHashOf(blsSecretKey *sec, const void *buf, size_t bufSize); +BLS_DLL_API int blsHashToSecretKey(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 2498759..d32740d 100644 --- a/src/bls_if.cpp +++ b/src/bls_if.cpp @@ -140,13 +140,13 @@ size_t blsSecretKeyGetHexStr(char *buf, size_t maxBufSize, const blsSecretKey *s return getStrT(sec, buf, maxBufSize, 16); } -int blsSecretKeySetToHashOf(blsSecretKey *sec, const void *buf, size_t bufSize) +int blsHashToSecretKey(blsSecretKey *sec, const void *buf, size_t bufSize) try { ((bls::SecretKey*)sec)->setHashOf(buf, bufSize); return 0; } catch (std::exception& e) { - fprintf(stderr, "err blsSecretKeySetByCSPRNG %s\n", e.what()); + fprintf(stderr, "err blsHashToSecretKey %s\n", e.what()); return -1; } -- cgit v1.2.3