diff options
Diffstat (limited to 'src/bls.cpp')
-rw-r--r-- | src/bls.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bls.cpp b/src/bls.cpp index 01a6ae9..70bbfa3 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -258,6 +258,11 @@ void Id::set(const uint64_t *p) getInner().v.setArrayMask(p, keySize); } +void Id::setLittleEndian(const void *buf, size_t bufSize) +{ + getInner().v.setArrayMask((const char *)buf, bufSize); +} + bool Sign::operator==(const Sign& rhs) const { return getInner().sHm == rhs.getInner().sHm; @@ -410,6 +415,10 @@ void SecretKey::set(const uint64_t *p) { getInner().s.setArrayMask(p, keySize); } +void SecretKey::setLittleEndian(const void *buf, size_t bufSize) +{ + getInner().s.setArrayMask((const char *)buf, bufSize); +} void SecretKey::getPublicKey(PublicKey& pub) const { |