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)
|
# additions by alec (tm)
|
||||||
build/
|
build/
|
||||||
connectionStrings.config
|
connectionStrings.config
|
||||||
*.kdev4
|
*.kdev4
|
||||||
.kdev4/
|
.kdev4/
|
||||||
|
.idea/
|
||||||
|
cmake-build-*/
|
|
@ -3,8 +3,8 @@
|
||||||
sosc::BigUInt sosc::cgc::KeyExchange::secret;
|
sosc::BigUInt sosc::cgc::KeyExchange::secret;
|
||||||
|
|
||||||
sosc::cgc::KeyExchange::KeyExchange() {
|
sosc::cgc::KeyExchange::KeyExchange() {
|
||||||
if(KeyExchange::secret.IsZero())
|
if(this->secret.IsZero())
|
||||||
KeyExchange::secret = FastRandomPrime();
|
this->secret = FastRandomPrime();
|
||||||
|
|
||||||
this->modulus = FastRandomPrime();
|
this->modulus = FastRandomPrime();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue