diff --git a/src/crypto/crypto-sugar.h b/src/crypto/crypto-sugar.h index 7f1b56b4..1caf06f0 100644 --- a/src/crypto/crypto-sugar.h +++ b/src/crypto/crypto-sugar.h @@ -886,6 +886,19 @@ namespace crypto scalar_t calc_hs() const; + void make_random() + { + for(size_t size = this->size(), i = 0; i < size; ++i) + at(i).make_random(); + } + + void resize_and_make_random(size_t size) + { + this->resize(size); + make_random(); + } + + }; // scalar_vec_t