public class GPSessionKeys extends Object
| Constructor and Description |
|---|
GPSessionKeys(GPCardKeys cardKeys,
byte[] enc,
byte[] mac,
byte[] rmac) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(byte[] data) |
byte[] |
encryptKey(GPCardKeys other,
GPCardKeys.KeyPurpose p) |
byte[] |
get(GPCardKeys.KeyPurpose p) |
String |
toString() |
public GPSessionKeys(GPCardKeys cardKeys, byte[] enc, byte[] mac, byte[] rmac)
public byte[] encrypt(byte[] data)
throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] encryptKey(GPCardKeys other, GPCardKeys.KeyPurpose p) throws GeneralSecurityException
GeneralSecurityExceptionpublic byte[] get(GPCardKeys.KeyPurpose p)
Copyright © 2019. All rights reserved.