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

Method RecoverMessage

src/cryptopp/cryptlib.cpp:920–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918}
919
920DecodingResult PK_Verifier::RecoverMessage(byte *recoveredMessage,
921 const byte *nonrecoverableMessage, size_t nonrecoverableMessageLength,
922 const byte *signature, size_t signatureLength) const
923{
924 member_ptr<PK_MessageAccumulator> m(NewVerificationAccumulator());
925 InputSignature(*m, signature, signatureLength);
926 m->Update(nonrecoverableMessage, nonrecoverableMessageLength);
927 return RecoverAndRestart(recoveredMessage, *m);
928}
929
930void SimpleKeyAgreementDomain::GenerateKeyPair(RandomNumberGenerator &rng, byte *privateKey, byte *publicKey) const
931{

Callers 1

SignatureValidateFunction · 0.80

Calls 4

InputSignatureFunction · 0.85
RecoverAndRestartFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected