MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / GetCryptoKeyType

Method GetCryptoKeyType

libi2pd/Identity.cpp:387–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 CryptoKeyType IdentityEx::GetCryptoKeyType () const
388 {
389 if (m_StandardIdentity.certificate[0] == CERTIFICATE_TYPE_KEY && m_ExtendedLen >= 4)
390 return bufbe16toh (m_ExtendedLen <= MAX_EXTENDED_BUFFER_SIZE ? m_ExtendedBuffer + 2 : m_ExtendedBufferPtr + 2); // crypto key
391 return CRYPTO_KEY_TYPE_ELGAMAL;
392 }
393
394 i2p::crypto::Verifier * IdentityEx::CreateVerifier (SigningKeyType keyType)
395 {

Callers 11

ResumeMethod · 0.80
AddMethod · 0.80
CreatePeersMethod · 0.80
ClientDestinationMethod · 0.80
GetPrivateKeyLenMethod · 0.80
CreateDecryptorMethod · 0.80
LoadMethod · 0.80
GetEncryptionTypeMethod · 0.80
IsECIESMethod · 0.80

Calls 1

bufbe16tohFunction · 0.85

Tested by

no test coverage detected