wot foc
This commit is contained in:
commit
111e2c10db
2 changed files with 4 additions and 5 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,8 +1,7 @@
|
|||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# additions by alec (tm)
|
||||
build/
|
||||
connectionStrings.config
|
||||
*.kdev4
|
||||
.kdev4/
|
||||
.idea/
|
||||
cmake-build-*/
|
|
@ -3,8 +3,8 @@
|
|||
sosc::BigUInt sosc::cgc::KeyExchange::secret;
|
||||
|
||||
sosc::cgc::KeyExchange::KeyExchange() {
|
||||
if(KeyExchange::secret.IsZero())
|
||||
KeyExchange::secret = FastRandomPrime();
|
||||
if(this->secret.IsZero())
|
||||
this->secret = FastRandomPrime();
|
||||
|
||||
this->modulus = FastRandomPrime();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue