|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.TMCryptography.IButtonAux
IButtonAux uses native calls to Dalas Semiconductor DLL to communicate with iButton hardware
| Field Summary | |
static int |
CIB_MODULUS
|
static int |
CIB_PRIVATE_EXP
|
static int |
CIB_PUBLIC_EXP
|
static int |
DECRYPT_CIB_KEY
|
static int |
ENCRYPT_CIB_KEY
|
static int |
ENCRYPT_OUT_KEY
|
static int |
GROUP_CERTIFICATE
|
static int |
GROUP_INFO
|
static int |
INPUT1
|
static int |
OUT_EXPONENT
|
static int |
OUT_MODULUS
|
static int |
OUTPUT1
|
static int |
OUTPUT2
|
static int |
PADDING
|
static int |
PARALLEL_ADAPTER
|
static int |
PRIVATE_KEY_CRYPT
|
static int |
PUBLIC_KEY_CRYPT
|
static int |
REG_NUMBER
|
static int |
SERIAL_ADAPTER
|
static int |
SIGN_CIB_KEY
|
static int |
SIGN_COUNT
|
static int |
TIMESTAMP
|
| Constructor Summary | |
IButtonAux()
IButtonAux constructor |
|
IButtonAux(int numbits,
int exTime)
|
|
| Method Summary | |
X509Certificate |
createCertificate(Name subject,
java.security.PublicKey pk,
Name issuer,
AlgorithmID algorithm,
boolean extensions)
Creates public certificate |
byte[] |
crypt(byte[] textIn,
int flag,
int blksize)
encrypts/decrypts message with either private/public keys |
void |
findButton()
Checks parallel adapter, port and iButton |
byte[] |
getExponent()
|
byte[] |
getModulus()
|
RSAPublicKey |
getPublicKey()
Creates public key out of modulus and exponent from the iButton |
byte[] |
sign(byte[] data)
signs message with iButton private key |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CIB_PUBLIC_EXP
public static final int CIB_MODULUS
public static final int CIB_PRIVATE_EXP
public static final int INPUT1
public static final int SIGN_COUNT
public static final int TIMESTAMP
public static final int SIGN_CIB_KEY
public static final int GROUP_INFO
public static final int GROUP_CERTIFICATE
public static final int OUT_EXPONENT
public static final int OUT_MODULUS
public static final int ENCRYPT_CIB_KEY
public static final int DECRYPT_CIB_KEY
public static final int ENCRYPT_OUT_KEY
public static final int OUTPUT1
public static final int OUTPUT2
public static final int REG_NUMBER
public static final int PADDING
public static final int PARALLEL_ADAPTER
public static final int SERIAL_ADAPTER
public static final int PUBLIC_KEY_CRYPT
public static final int PRIVATE_KEY_CRYPT
| Constructor Detail |
public IButtonAux()
public IButtonAux(int numbits,
int exTime)
| Method Detail |
public void findButton()
public byte[] crypt(byte[] textIn,
int flag,
int blksize)
textIn - message to encrypt/decryptflag - specifies what key to useblksize - block sizepublic byte[] sign(byte[] data)
data - message to sign
public byte[] getModulus()
public byte[] getExponent()
public RSAPublicKey getPublicKey()
public X509Certificate createCertificate(Name subject,
java.security.PublicKey pk,
Name issuer,
AlgorithmID algorithm,
boolean extensions)
subject - pk - public keyalgorithm - extensions -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||