noloader / cryptopp-pem

PEM parsing of keys and parameters for Crypto++ project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ed25519::Verifier needs constructor accepting type CryptoMaterial as key

GekkieHenkie opened this issue · comments

commented

In file x509cert.cpp on both lines 1425 and 1435 the code doesn't compile since the constructor of an ed25519::Verifier object cannot implicitly convert an X509PublicKey key.

The verifiers for existing encryption algorithms (e.g. ECDSA<ECP, SHA512>, RSASS<PSS, SHA256>, etc.) all provide a constructor (inherited from PK_FinalTemplate), accepting a const CryptoMaterial& key (which is a base class of type X509PublicKey).