Portuguese eID Middleware SDK Version: 3.14.0
Loading...
Searching...
No Matches
eIDMW::PTEID_PublicKey Class Reference

#include <eidlib.h>

Public Member Functions

virtual PTEIDSDK_API ~PTEID_PublicKey ()
 
PTEIDSDK_API PTEID_ByteArraygetCardAuthKeyModulus ()
 
PTEIDSDK_API PTEID_ByteArraygetCardAuthKeyExponent ()
 
PTEIDSDK_API bool isECCPublicKey ()
 
PTEIDSDK_API PTEID_ByteArraygetCardAuthECCKey ()
 
- Public Member Functions inherited from eIDMW::PTEID_Object
virtual PTEIDSDK_API ~PTEID_Object ()=0
 
NOEXPORT_PTEIDSDK void Init (const SDK_Context *context, void *impl)
 
NOEXPORT_PTEIDSDK void Release ()
 

Additional Inherited Members

- Protected Member Functions inherited from eIDMW::PTEID_Object
 PTEID_Object (const SDK_Context *context, void *impl)
 
void addObject (PTEID_Object *impl)
 
void backupObject (unsigned long idx)
 
PTEID_ObjectgetObject (unsigned long idx)
 
PTEID_ObjectgetObject (void *impl)
 
void delObject (unsigned long idx)
 
void delObject (void *impl)
 
void checkContextStillOk () const
 
 PTEID_Object (const PTEID_Object &obj)
 
PTEID_Objectoperator= (const PTEID_Object &obj)
 
- Protected Attributes inherited from eIDMW::PTEID_Object
bool m_delimpl
 
void * m_impl
 
unsigned long m_ulIndexExtAdd
 
std::map< unsigned long, PTEID_Object * > m_objects
 
SDK_Context * m_context
 

Detailed Description

Class that represents the card authentication public key - to be used in a mutual authentication process (1024 bit RSA key) This key is totally unrelated to the citizen authentication key which is present in the authentication certificate

Constructor & Destructor Documentation

◆ ~PTEID_PublicKey()

virtual PTEIDSDK_API eIDMW::PTEID_PublicKey::~PTEID_PublicKey ( )
virtual

Destructor

Member Function Documentation

◆ getCardAuthECCKey()

PTEIDSDK_API PTEID_ByteArray & eIDMW::PTEID_PublicKey::getCardAuthECCKey ( )

Return the EC public key data in uncompressed format. This is only applicable for objects coming from PTEID_CARDTYPE_IAS5 cards.

◆ getCardAuthKeyExponent()

PTEIDSDK_API PTEID_ByteArray & eIDMW::PTEID_PublicKey::getCardAuthKeyExponent ( )

Return the RSA public key exponent if this object contains an RSA public key

◆ getCardAuthKeyModulus()

PTEIDSDK_API PTEID_ByteArray & eIDMW::PTEID_PublicKey::getCardAuthKeyModulus ( )

Return the RSA public key module if this object contains an RSA public key

◆ isECCPublicKey()

PTEIDSDK_API bool eIDMW::PTEID_PublicKey::isECCPublicKey ( )

Return true if this object contains an Elliptic Curve public key instead of RSA