| Package | Description |
|---|---|
| org.unitedid.yhsm | |
| org.unitedid.yhsm.internal |
| Modifier and Type | Method and Description |
|---|---|
DeviceHandler |
YubiHSM.getRawDevice()
Get the raw device, used for debugging.
|
| Modifier and Type | Method and Description |
|---|---|
static DeviceHandler |
DeviceHandlerFactory.get(String device) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AESECBCmd.compare(DeviceHandler deviceHandler,
int keyHandle,
String cipherText,
String plaintext)
AES ECB decrypt a cipher text using a specific key handle, and then compare it with the supplied plaintext.
|
static String |
AESECBCmd.decrypt(DeviceHandler deviceHandler,
int keyHandle,
String cipherText)
AES ECB decrypt a cipher text using a specific key handle.
|
static String |
AESECBCmd.encrypt(DeviceHandler deviceHandler,
int keyHandle,
String plaintext)
AES ECB encrypt a plaintext string using a specific key handle.
|
static byte[] |
HMACCmd.execHMACSHA1_Raw(DeviceHandler deviceHandler,
byte[] data,
int keyHandle,
byte flags)
Generate HMAC SHA1 using a key handle in the YubiHSM.
|
static void |
MonitorExitCmd.execute(DeviceHandler deviceHandler)
Send the magics to the HSM to get it to exit to configuration mode.
|
protected static byte[] |
CommandHandler.execute(DeviceHandler device,
byte command,
byte[] data,
boolean readResponse) |
static byte[] |
RandomCmd.execute(DeviceHandler device,
int bytes)
Tell the YubiHSM to generate a number of random bytes.
|
static Nonce |
NonceGetCmd.execute(DeviceHandler device,
short increment)
Get a nonce from the YubiHSM.
|
static boolean |
RandomReseedCmd.execute(DeviceHandler device,
String seed)
Provide YubiHSM DRBG_CTR with a new seed.
|
static boolean |
KeyStoreDecryptCmd.execute(DeviceHandler device,
String key) |
static boolean |
KeyStorageUnlockCmd.execute(DeviceHandler device,
String password)
Unlock the YubiHSM key storage using the HSM password.
|
static String |
EchoCmd.execute(DeviceHandler device,
String data)
Test the YubiHSM by sending a string that the YubiHSM will echo back.
|
static boolean |
LoadTemporaryKeyCmd.execute(DeviceHandler device,
String nonce,
int keyHandle,
String aead)
Load the content of an AEAD into the phantom key handle 0xffffffff.
|
static Map<String,Integer> |
YubikeyOtpDecodeCmd.execute(DeviceHandler device,
String publicId,
int keyHandle,
String aead,
String otp)
Load the content of an AEAD into the phantom key handle 0xffffffff.
|
static Map<String,String> |
AEADCmd.generateAEAD(DeviceHandler device,
String nonce,
int keyHandle,
byte[] data)
Generate AEADCmd block from data for a specific key and nonce.
|
static Map<String,String> |
AEADCmd.generateBufferAEAD(DeviceHandler device,
String nonce,
int keyHandle)
Generate AEAD block of data buffer for a specific key.
|
static Map<String,String> |
HMACCmd.generateHMACSHA1(DeviceHandler deviceHandler,
byte[] data,
int keyHandle,
byte flags,
boolean last,
boolean toBuffer)
Generate HMAC SHA1 using a key handle in the YubiHSM.
|
static Map<String,String> |
AEADCmd.generateRandomAEAD(DeviceHandler device,
String nonce,
int keyHandle,
int size)
Generate a random AEAD block using the YubiHSM internal TRNG.
|
static int |
BufferCmd.loadData(DeviceHandler device,
byte[] data,
int offset)
Load data into the YubiHSMs internal buffer.
|
static int |
BufferCmd.loadData(DeviceHandler device,
String data,
int offset)
Load data into the YubiHSMs internal buffer.
|
static int |
BufferCmd.loadRandomData(DeviceHandler device,
int length,
int offset)
Load random data into the YubiHSMs internal buffer.
|
static Map<String,String> |
HMACCmd.next(DeviceHandler deviceHandler,
byte[] data,
int keyHandle,
boolean last,
boolean toBuffer)
Add more input to the HMAC SHA1.
|
static void |
CommandHandler.reset(DeviceHandler device) |
static boolean |
HsmUnlockCmd.unlockOtp(DeviceHandler device,
String publicId,
String otp)
Have the YubiHSM unlock the HSM operations (those involving the keystore) with a YubiKey OTP.
|
static boolean |
AEADCmd.validateAEAD(DeviceHandler device,
String nonce,
int keyHandle,
String aead,
byte[] plaintext)
Validate an AEAD using the YubiHSM, matching it against some known plain text.
|
| Constructor and Description |
|---|
SystemInfoCmd(DeviceHandler device)
Constructor to initiate a class with HSM system information
|
Copyright © 2011-2016 United ID. All Rights Reserved.