MCPcopy Create free account
hub / github.com/LUX-Core/lux / Sign

Method Sign

src/cryptopp/gfpcrypt.h:409–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 virtual ~DL_Algorithm_GDSA_ISO15946() {}
408
409 void Sign(const DL_GroupParameters<T> &params, const Integer &x, const Integer &k, const Integer &e, Integer &r, Integer &s) const
410 {
411 const Integer &q = params.GetSubgroupOrder();
412 // r = x(k * G) mod q
413 r = params.ConvertElementToInteger(params.ExponentiateBase(k)) % q;
414 // s = (k * r − h(m)) * d_A mod q
415 s = (k * r - e) * x % q;
416 CRYPTOPP_ASSERT(!!r && !!s);
417 }
418
419 bool Verify(const DL_GroupParameters<T> &params, const DL_PublicKey<T> &publicKey, const Integer &e, const Integer &r, const Integer &s) const
420 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected