|
| | SAMISO7816Commands () |
| | Constructor.
|
| |
| | SAMISO7816Commands (std::string ct) |
| |
| virtual | ~SAMISO7816Commands () |
| | Destructor.
|
| |
| std::shared_ptr< ISO7816ReaderCardAdapter > | getISO7816ReaderCardAdapter () |
| |
| ByteVector | transmit (ByteVector cmd, bool=true, bool=true) override |
| |
| SAMVersion | getVersion () override |
| |
| ByteVector | decipherData (ByteVector data, bool islastdata) override |
| |
| ByteVector | encipherData (ByteVector data, bool islastdata) override |
| |
| void | disableKeyEntry (unsigned char keyno) override |
| |
| ByteVector | dumpSessionKey () override |
| |
| void | loadInitVector (ByteVector iv) override |
| |
| std::string | getSAMTypeFromSAM () override |
| |
| virtual std::shared_ptr< SAMDESfireCrypto > | getCrypto () |
| |
| virtual void | setCrypto (std::shared_ptr< SAMDESfireCrypto > t) |
| |
| void | lockUnlock (std::shared_ptr< DESFireKey > masterKey, SAMLockUnlock state, unsigned char keyno, unsigned char unlockkeyno, unsigned char unlockkeyversion) override |
| |
| void | selectApplication (ByteVector aid) override |
| |
| ByteVector | changeKeyPICC (const ChangeKeyInfo &info, const ChangeKeyDiversification &diversifycation) override |
| |
Public Member Functions inherited from logicalaccess::SAMCommands< T, S > |
| | SAMCommands () |
| |
| | SAMCommands (std::string ct) |
| |
| virtual SAMVersion | getVersion ()=0 |
| |
| virtual std::shared_ptr< SAMKeyEntry< T, S > > | getKeyEntry (unsigned char keyno)=0 |
| |
| virtual std::shared_ptr< SAMKucEntry > | getKUCEntry (unsigned char keyno)=0 |
| |
| virtual void | changeKeyEntry (unsigned char keyno, std::shared_ptr< SAMKeyEntry< T, S > > keyentry, std::shared_ptr< DESFireKey > key)=0 |
| |
| virtual void | changeKUCEntry (unsigned char keyno, std::shared_ptr< SAMKucEntry > keyentry, std::shared_ptr< DESFireKey > key)=0 |
| |
| virtual void | authenticateHost (std::shared_ptr< DESFireKey > key, unsigned char keyno)=0 |
| |
| virtual std::string | getSAMTypeFromSAM ()=0 |
| |
| virtual void | disableKeyEntry (unsigned char keyno)=0 |
| |
| virtual void | selectApplication (ByteVector aid)=0 |
| |
| virtual ByteVector | dumpSessionKey ()=0 |
| |
| virtual void | loadInitVector (ByteVector iv)=0 |
| |
| virtual ByteVector | decipherData (ByteVector data, bool islastdata)=0 |
| |
| virtual ByteVector | encipherData (ByteVector data, bool islastdata)=0 |
| |
| virtual ByteVector | changeKeyPICC (const ChangeKeyInfo &info, const ChangeKeyDiversification &diversifycation)=0 |
| |
| virtual void | lockUnlock (std::shared_ptr< DESFireKey > masterKey, SAMLockUnlock state, unsigned char keyno, unsigned char unlockkeyno, unsigned char unlockkeyversion)=0 |
| |
| virtual ByteVector | transmit (ByteVector cmd, bool first=true, bool last=true)=0 |
| |
Public Member Functions inherited from logicalaccess::Commands |
| | Commands ()=delete |
| | Constructor.
|
| |
| virtual | ~Commands () |
| |
| std::shared_ptr< Chip > | getChip () const override |
| | Get the chip.
|
| |
| virtual void | setChip (std::shared_ptr< Chip > chip) |
| | Set the chip.
|
| |
| std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const override |
| | Get the reader/card adapter.
|
| |
| virtual void | setReaderCardAdapter (std::shared_ptr< ReaderCardAdapter > adapter) |
| | Set the reader/card adapter.
|
| |
| virtual const std::string & | getCmdType () const |
| | Get the cmd name.
|
| |
| virtual void | setCmdType (const std::string &command_type) |
| | Set the cmd name.
|
| |
Public Member Functions inherited from logicalaccess::ICommands |
| virtual | ~ICommands ()=default |
| |
| virtual std::shared_ptr< Chip > | getChip () const =0 |
| | Get the chip.
|
| |
| virtual std::shared_ptr< ReaderCardAdapter > | getReaderCardAdapter () const =0 |
| | Get the reader/card adapter.
|
| |
template<typename T, typename S>
class logicalaccess::SAMISO7816Commands< T, S >
The SAMISO7816 commands class.