From cdea71ee335760b0f9cb8422dd995176cf6bdc5f Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 30 May 2017 06:23:51 +0900 Subject: rename IsSame to IsEqual --- src/bls_if.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bls_if.cpp b/src/bls_if.cpp index 48f16b5..9d0c6ce 100644 --- a/src/bls_if.cpp +++ b/src/bls_if.cpp @@ -81,7 +81,7 @@ int blsGetFieldOrder(char *buf, size_t maxBufSize) return 0; } -int blsIdIsSame(const blsId *lhs, const blsId *rhs) +int blsIdIsEqual(const blsId *lhs, const blsId *rhs) { return *(const bls::Id*)lhs == *(const bls::Id*)rhs ? 1 : 0; } @@ -110,7 +110,7 @@ size_t blsIdGetHexStr(char *buf, size_t maxBufSize, const blsId *id) { return getStrT(id, buf, maxBufSize, 16); } -int blsSecretKeyIsSame(const blsSecretKey *lhs, const blsSecretKey *rhs) +int blsSecretKeyIsEqual(const blsSecretKey *lhs, const blsSecretKey *rhs) { return *(const bls::SecretKey*)lhs == *(const bls::SecretKey*)rhs ? 1 : 0; } @@ -197,7 +197,7 @@ void blsGetPop(blsSignature *sig, const blsSecretKey *sec) ((const bls::SecretKey*)sec)->getPop(*(bls::Signature*)sig); } -int blsPublicKeyIsSame(const blsPublicKey *lhs, const blsPublicKey *rhs) +int blsPublicKeyIsEqual(const blsPublicKey *lhs, const blsPublicKey *rhs) { return *(const bls::PublicKey*)lhs == *(const bls::PublicKey*)rhs ? 1 : 0; } @@ -257,7 +257,7 @@ int blsPublicKeyRecover(blsPublicKey *pub, const blsPublicKey *pubVec, const bls return -1; } -int blsSignatureIsSame(const blsSignature *lhs, const blsSignature *rhs) +int blsSignatureIsEqual(const blsSignature *lhs, const blsSignature *rhs) { return *(const bls::Signature*)lhs == *(const bls::Signature*)rhs ? 1 : 0; } -- cgit v1.2.3