Public Member Functions | |
List | GetReaderList () |
boolean | connectToSmartCard () throws Exception |
void | DisconnectFromCard () throws Exception |
MyRSAPublicKey | retrievePublicKey () throws Exception |
byte[] | EncryptLogKey (byte[] logKey, byte day, byte month, short year, PublicKey publicKey) throws Exception |
int | GetExpectedLogLineLength (int plainDataLength) throws Exception |
byte[] | EncryptLogLine (byte[] logKey, byte[] data, byte[] iv) throws Exception |
byte[] | DecryptLogLine (byte[] encrLogKey, byte[] encrData, byte[] iv) throws Exception |
byte[] | DecryptLogLineKey (byte[] logKey, byte[] encrData, byte[] iv) throws Exception |
boolean | authenticateUser (byte[] pin) throws Exception |
boolean | Admin_Authenticate (byte[] key) throws Exception |
boolean | Admin_SetCurrentDate (byte day, byte month, short year) throws Exception |
boolean | Admin_SetAdminPIN (byte[] newPINValue) throws Exception |
boolean | Admin_UnblockUserPIN (byte[] newPINValue) throws Exception |
byte[] | decrpytSymmetricKey (byte[] encryptedKey) throws Exception |
byte[] | CreateIV (int blocksCounter) |
byte[] | CreateFooter (byte[] logKey, int blocksCounter) throws Exception |
int | VerifyFooter (byte[] logKey, byte[] footer, int counter) throws Exception |
String | byteToHex (byte data) |
char | toHexChar (int i) |
String | bytesToHex (byte[] data) |
Static Public Attributes | |
static final byte | DATE_LENGTH = (short) 0x04 |
static final byte | DATE_AUTH_TAG_LENGTH = (short) 0x10 |
static final short | GCM_AUTH_TAG_LENGTH = (short) 128 |
static final short | ENCRYPTED_KEY_LENGTH = (short) 256 |
static byte | entity_entry_lengths [] = {(byte) 0, (byte) 18, (byte) 16, (byte) 18, (byte) 12} |
static final short | AES_BLOCK_LENGTH = (short) 16 |
static final short | AES128_KEY_LENGTH = (short) 16 |
Package Attributes | |
CardTerminal | m_terminal = null |
CardChannel | m_channel = null |
Card | m_card = null |
Private Member Functions | |
ResponseAPDU | sendAPDU (byte apdu[]) throws Exception |
Private Attributes | |
final byte | OFFSET_CLA = 0x00 |
final byte | OFFSET_INS = 0x01 |
final byte | OFFSET_P1 = 0x02 |
final byte | OFFSET_P2 = 0x03 |
final byte | OFFSET_LC = 0x04 |
final byte | OFFSET_DATA = 0x05 |
final byte | HEADER_LENGTH = 0x05 |
final short | RSA_KEY_LENGTH = (short) 256 |
final byte | CLA_ANON = (byte) 0xB0 |
final byte | INS_AUTHADMIN = 0x30 |
final byte | INS_SETDATE = 0x31 |
final byte | INS_UNBLOCKUSERPIN = 0x32 |
final byte | INS_SETADMINPIN = 0x33 |
final byte | INS_AUTHUSER = (byte) 0x50 |
final byte | INS_GETLOGKEY = (byte) 0x51 |
final byte | INS_GETPUBLICKEY_EXP = (byte) 0x52 |
final byte | INS_GETPUBLICKEY_MOD = (byte) 0x53 |
final byte | ANON_LOG_KEY_LENGTH = (byte) 0x10 |
final short | APDU_DATA_LENGTH = (short) 0xc8 |
final byte | selectANONApplet [] |
Static Private Attributes | |
static final short | EXCEPTION_NEW_DATE_IN_PAST = (short) 0x6001 |
static final short | EXCEPTION_OUTSIDE_RETENTION_PERIOD = (short) 0x6002 |
static final short | SW_SECURITY_STATUS_NOT_SATISFIED = (short) 0x6002 |
List mixconfig.tools.dataretention.DataRetentionSmartCard.GetReaderList | ( | ) |
Method returns list of smart card readers available in system
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.connectToSmartCard().
boolean mixconfig.tools.dataretention.DataRetentionSmartCard.connectToSmartCard | ( | ) | throws Exception |
Method search all available readers and connect to first ANON card found and select ANONLog applet
References mixconfig.tools.dataretention.DataRetentionSmartCard.GetReaderList(), mixconfig.tools.dataretention.DataRetentionSmartCard.m_card, mixconfig.tools.dataretention.DataRetentionSmartCard.m_channel, mixconfig.tools.dataretention.DataRetentionSmartCard.m_terminal, mixconfig.tools.dataretention.DataRetentionSmartCard.selectANONApplet, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
Referenced by mixconfig.tools.DataRetentionLogDecrypt.doSetSecretPrivateKey(), mixconfig.panels.DataRetentionPanel.importDataRetentionKey(), and mixconfig.tools.dataretention.RetentionDlg.RetentionDlg().
void mixconfig.tools.dataretention.DataRetentionSmartCard.DisconnectFromCard | ( | ) | throws Exception |
Method disconnect from cad and close session
References mixconfig.tools.dataretention.DataRetentionSmartCard.m_card.
MyRSAPublicKey mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey | ( | ) | throws Exception |
Method uses existing connection to card, retrieve public exponent and modulus (in case of RSA) and construct public key
References mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_GETPUBLICKEY_EXP, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_GETPUBLICKEY_MOD, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, mixconfig.tools.dataretention.DataRetentionSmartCard.RSA_KEY_LENGTH, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
Referenced by mixconfig.tools.DataRetentionLogDecrypt.doSetSecretPrivateKey(), mixconfig.panels.DataRetentionPanel.importDataRetentionKey(), and mixconfig.tools.dataretention.RetentionDlg.RetentionDlg().
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.EncryptLogKey | ( | byte[] | logKey, | |
byte | day, | |||
byte | month, | |||
short | year, | |||
PublicKey | publicKey | |||
) | throws Exception |
Method encrypts provided log key by public key of secure hardware (e.g. smart card) together with date of log key creation. Log key can be retrieved back only of entity controling private key (smart card) verifies date to be in data retention period.
logKey | value of symmetrci cryptography key used to encrypt log entries | |
day | actual day of log file creation | |
month | actual month of log file creation | |
year | actual year of log file creation | |
publicKey | RSA public key used to store log key. |
References mixconfig.tools.dataretention.DataRetentionSmartCard.ANON_LOG_KEY_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.bytesToHex(), mixconfig.tools.dataretention.DataRetentionSmartCard.DATE_AUTH_TAG_LENGTH, and mixconfig.tools.dataretention.DataRetentionSmartCard.DATE_LENGTH.
int mixconfig.tools.dataretention.DataRetentionSmartCard.GetExpectedLogLineLength | ( | int | plainDataLength | ) | throws Exception |
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.EncryptLogLine | ( | byte[] | logKey, | |
byte[] | data, | |||
byte[] | iv | |||
) | throws Exception |
Method encrypts provided data in GCM mode with AES 128bits keys
logKey | value of symmetrci cryptography key used to encrypt log entries | |
data | raw log data to be encrypted | |
iv | initialization vector used to symmetric cryptography encryption | |
year | actual year of log file creation | |
publicKey | RSA public key used to store log key. Log key can be retrieved back only of entity controling private key (smart card) verifies date to be in data retention period |
References mixconfig.tools.dataretention.DataRetentionSmartCard.GCM_AUTH_TAG_LENGTH.
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.CreateFooter().
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.DecryptLogLine | ( | byte[] | encrLogKey, | |
byte[] | encrData, | |||
byte[] | iv | |||
) | throws Exception |
Method tries to retrieve decrypted log key from smart card and then decrypt provided data. Key is returned only if request is within data reteion period. User must be authenticated to smart card by User_Authenticate() method in advance.
encrLogKey | encrypted value of symmetric cryptography key used to encrypt log entries | |
encrData | encrypted raw log data to be decrypted | |
iv | initialization vector used to symmetric cryptography encryption |
References mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.DecryptLogLineKey().
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.DecryptLogLineKey | ( | byte[] | logKey, | |
byte[] | encrData, | |||
byte[] | iv | |||
) | throws Exception |
Method decrypt provided data with provided log key.
logKey | AES128bits key used to encrypt log entries | |
encrData | encrypted raw log data to be decrypted | |
iv | initialization vector used to symmetric cryptography encryption |
References mixconfig.tools.dataretention.DataRetentionSmartCard.GCM_AUTH_TAG_LENGTH.
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.DecryptLogLine(), mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed(), and mixconfig.tools.dataretention.DataRetentionSmartCard.VerifyFooter().
boolean mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser | ( | byte[] | pin | ) | throws Exception |
Method verifies supplied user PIN on smart card and allows to call protected function subsequently.
pin | user PIN |
References mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_AUTHUSER, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_DATA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
Referenced by mixconfig.tools.dataretention.RetentionDlg.authenticateUserActionPerformed(), and mixconfig.tools.DataRetentionLogDecrypt.doSetSecretPrivateKey().
boolean mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate | ( | byte[] | key | ) | throws Exception |
Method authenticate admin credentials allows to call protected function subsequently.
key | admin credentials (currently PIN) |
References mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_AUTHADMIN, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_DATA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
Referenced by mixconfig.tools.dataretention.RetentionDlg.jButton1ActionPerformed().
boolean mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate | ( | byte | day, | |
byte | month, | |||
short | year | |||
) | throws Exception |
Method set current trusted date on smart card, used later to check data retention period. Administrator must be authenticated to smart card in advance via Admin_Authenticate() method.
References mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.DATE_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_SETDATE, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_DATA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
Referenced by mixconfig.tools.dataretention.RetentionDlg.SetCurrentDateActionPerformed().
boolean mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN | ( | byte[] | newPINValue | ) | throws Exception |
Method set new value of administration PIN. Administrator must be authenticated to smart card in advance via Admin_Authenticate() method.
References mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_SETADMINPIN, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
boolean mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN | ( | byte[] | newPINValue | ) | throws Exception |
Method set unblock or set new PIN value for user PIN. Administrator must be authenticated to smart card in advance via Admin_Authenticate() method.
newPINValue | if null, user PIN is only unblocked. If not null then new user PIN is set to given value. |
References mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_UNBLOCKUSERPIN, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey | ( | byte[] | encryptedKey | ) | throws Exception |
Method try to retrieve decrypted key from smart card. Sucesfull only if key usage is within data retention period. User must be authenticated to smart card in advance via User_Authenticate() method.
encryptedKey | block containing encrypted log key with usage date. |
References mixconfig.tools.dataretention.DataRetentionSmartCard.APDU_DATA_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.bytesToHex(), mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON, mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH, mixconfig.tools.dataretention.DataRetentionSmartCard.INS_GETLOGKEY, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_DATA, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1, mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2, and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.DecryptLogLine(), mixconfig.tools.DataRetentionLogDecrypt.doLogDecrpyt(), mixconfig.tools.DataRetentionLogDecrypt.doVerifyLogFiles(), and mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed().
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.CreateIV | ( | int | blocksCounter | ) |
Method creates proper raw initialization vector from value of blocksCounter.
blocksCounter | Actual counter of blocks (aka log lines) |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.CreateFooter(), and mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed().
byte [] mixconfig.tools.dataretention.DataRetentionSmartCard.CreateFooter | ( | byte[] | logKey, | |
int | blocksCounter | |||
) | throws Exception |
Method creates footer from total number of blocks value and encrypts it with log key for this file.
blocksCounter | Total blocks (aka log lines) in file. |
References mixconfig.tools.dataretention.DataRetentionSmartCard.CreateIV(), and mixconfig.tools.dataretention.DataRetentionSmartCard.EncryptLogLine().
int mixconfig.tools.dataretention.DataRetentionSmartCard.VerifyFooter | ( | byte[] | logKey, | |
byte[] | footer, | |||
int | counter | |||
) | throws Exception |
Method verifies footer integrity and return number of blocks (log lines) stored in file.
logKey | Log key used to encrypt and MAC file | |
footer | Encrypted footer. | |
counter | Expected value of blocks stored in file - must be supplied as is used as IV for decryption. |
References mixconfig.tools.dataretention.DataRetentionSmartCard.DecryptLogLineKey().
Referenced by mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed().
String mixconfig.tools.dataretention.DataRetentionSmartCard.byteToHex | ( | byte | data | ) |
char mixconfig.tools.dataretention.DataRetentionSmartCard.toHexChar | ( | int | i | ) |
String mixconfig.tools.dataretention.DataRetentionSmartCard.bytesToHex | ( | byte[] | data | ) |
References mixconfig.tools.dataretention.DataRetentionSmartCard.byteToHex().
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), mixconfig.tools.dataretention.DataRetentionSmartCard.EncryptLogKey(), mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed(), and mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU().
ResponseAPDU mixconfig.tools.dataretention.DataRetentionSmartCard.sendAPDU | ( | byte | apdu[] | ) | throws Exception [private] |
References mixconfig.tools.dataretention.DataRetentionSmartCard.bytesToHex(), and mixconfig.tools.dataretention.DataRetentionSmartCard.m_channel.
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.connectToSmartCard(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
CardTerminal mixconfig.tools.dataretention.DataRetentionSmartCard.m_terminal = null [package] |
CardChannel mixconfig.tools.dataretention.DataRetentionSmartCard.m_channel = null [package] |
Card mixconfig.tools.dataretention.DataRetentionSmartCard.m_card = null [package] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_CLA = 0x00 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_INS = 0x01 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P1 = 0x02 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_P2 = 0x03 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_LC = 0x04 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.OFFSET_DATA = 0x05 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), and mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.HEADER_LENGTH = 0x05 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final short mixconfig.tools.dataretention.DataRetentionSmartCard.RSA_KEY_LENGTH = (short) 256 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.CLA_ANON = (byte) 0xB0 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_Authenticate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetAdminPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_SetCurrentDate(), mixconfig.tools.dataretention.DataRetentionSmartCard.Admin_UnblockUserPIN(), mixconfig.tools.dataretention.DataRetentionSmartCard.authenticateUser(), mixconfig.tools.dataretention.DataRetentionSmartCard.decrpytSymmetricKey(), and mixconfig.tools.dataretention.DataRetentionSmartCard.retrievePublicKey().
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_AUTHADMIN = 0x30 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_SETDATE = 0x31 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_UNBLOCKUSERPIN = 0x32 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_SETADMINPIN = 0x33 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_AUTHUSER = (byte) 0x50 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_GETLOGKEY = (byte) 0x51 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_GETPUBLICKEY_EXP = (byte) 0x52 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.INS_GETPUBLICKEY_MOD = (byte) 0x53 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.ANON_LOG_KEY_LENGTH = (byte) 0x10 [private] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.APDU_DATA_LENGTH = (short) 0xc8 [private] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.DATE_LENGTH = (short) 0x04 [static] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.DATE_AUTH_TAG_LENGTH = (short) 0x10 [static] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.GCM_AUTH_TAG_LENGTH = (short) 128 [static] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.ENCRYPTED_KEY_LENGTH = (short) 256 [static] |
final byte mixconfig.tools.dataretention.DataRetentionSmartCard.selectANONApplet[] [private] |
Initial value:
{ (byte) 0x00, (byte) 0xa4, (byte) 0x04, (byte) 0x00, (byte) 0x0D, (byte) 0x41, (byte) 0x4E, (byte) 0x4F, (byte) 0x4E, (byte) 0x4C, (byte) 0x6F, (byte) 0x67, (byte) 0x41, (byte) 0x70, (byte) 0x70, (byte) 0x6C, (byte) 0x65, (byte) 0x74}
Referenced by mixconfig.tools.dataretention.DataRetentionSmartCard.connectToSmartCard().
byte mixconfig.tools.dataretention.DataRetentionSmartCard.entity_entry_lengths[] = {(byte) 0, (byte) 18, (byte) 16, (byte) 18, (byte) 12} [static] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.AES_BLOCK_LENGTH = (short) 16 [static] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.AES128_KEY_LENGTH = (short) 16 [static] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.EXCEPTION_NEW_DATE_IN_PAST = (short) 0x6001 [static, private] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.EXCEPTION_OUTSIDE_RETENTION_PERIOD = (short) 0x6002 [static, private] |
final short mixconfig.tools.dataretention.DataRetentionSmartCard.SW_SECURITY_STATUS_NOT_SATISFIED = (short) 0x6002 [static, private] |