public abstract class GPCardKeys extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GPCardKeys.KeyPurpose |
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
kdd |
protected GPSecureChannel |
scp |
| Constructor and Description |
|---|
GPCardKeys() |
| Modifier and Type | Method and Description |
|---|---|
GPCardKeys |
diversify(GPSecureChannel scp,
byte[] kdd) |
abstract byte[] |
encrypt(byte[] data) |
abstract byte[] |
encryptKey(GPCardKeys key,
GPCardKeys.KeyPurpose p) |
byte[] |
getKDD() |
abstract GPKeyInfo |
getKeyInfo() |
abstract GPSessionKeys |
getSessionKeys(byte[] kdd) |
abstract byte[] |
kcv(GPCardKeys.KeyPurpose p) |
String |
toString() |
protected GPSecureChannel scp
protected byte[] kdd
public abstract GPKeyInfo getKeyInfo()
public abstract byte[] encrypt(byte[] data)
throws GeneralSecurityException
GeneralSecurityExceptionpublic abstract byte[] encryptKey(GPCardKeys key, GPCardKeys.KeyPurpose p) throws GeneralSecurityException
GeneralSecurityExceptionpublic abstract GPSessionKeys getSessionKeys(byte[] kdd)
public abstract byte[] kcv(GPCardKeys.KeyPurpose p)
public GPCardKeys diversify(GPSecureChannel scp, byte[] kdd)
public byte[] getKDD()
Copyright © 2019. All rights reserved.