Class DataAuthentication
This class implements data authentication
Defined in: dataAuthentication.js.
Constructor Attributes | Constructor Name and Description |
---|---|
DataAuthentication(emv)
DataAuthentication class constructor
|
Method Attributes | Method Name and Description |
---|---|
addSchemePublicKey(rid, index, key)
Add a new public key to the array
|
|
Decryption of the Issuer Public Key Certificate
|
|
Generation and verification of the dynamic signature.
|
|
Get the Public Key Index
|
|
getRID()
Get the Registered Application Provider Identifier from EMV data model
|
|
Get the public key
|
|
retrieveICCPublicKey(key)
Retrieval of ICC Public Key
|
|
Retrieval of Issuer Public Key
|
|
verifySSAD(key)
Verification of Signed Static Application Data
|
Class Detail
DataAuthentication(emv)
DataAuthentication class constructor
- Parameters:
- {EMV} emv
- an instance of the EMV class
- Requires:
- EMV
Method Detail
addSchemePublicKey(rid, index, key)
Add a new public key to the array
- Parameters:
- {ByteString} rid
- the Registered Application Provider Identifier
- {Number} index
- the public key index
- {Key} key
- the public key
decryptIssuerPKCertificate()
Decryption of the Issuer Public Key Certificate
- Returns:
- the decrypted Issuer Public Key Certificate
dynamicDataAuthentication(key)
Generation and verification of the dynamic signature.
A successfully retrieval of the ICC Public Key is required.
- Parameters:
- {Key} key
- the ICC Public Key
{Number}
getPubKeyIndex()
Get the Public Key Index
- Returns:
- the Public Key Index
{ByteString}
getRID()
Get the Registered Application Provider Identifier from EMV data model
- Returns:
- the 5 byte RID
{Key}
getSchemePublicKey()
Get the public key
- Returns:
- the public key
{Key}
retrieveICCPublicKey(key)
Retrieval of ICC Public Key
- Parameters:
- {Key} key
- the Issuer Public Key
- Returns:
- the ICC Public Key
{Key}
retrieveIssuerPublicKey()
Retrieval of Issuer Public Key
- Returns:
- the Issuer Public Key
verifySSAD(key)
Verification of Signed Static Application Data
- Parameters:
- {Key} key
- the Issuer Public Key