|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logi.crypto.Crypto
org.logi.crypto.protocols.QRAuth
Ancestor of QRAuth classes.
Field Summary | |
protected boolean |
completed
|
protected CipherKey |
key
The secret key. |
protected byte[] |
r
The random number chosen by the other. |
Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
Constructor Summary | |
QRAuth(CipherKey key)
Creates a new QRAuth object with the specified secret key . |
Method Summary | |
protected static void |
addOne(byte[] a)
Add one to the number stored in a[0..a.length-1]. |
boolean |
completed()
Returns true iff this end of the protocol is completed. |
int |
maxMessageSize()
Returns the maximum expected size of a message for this protocol. |
Methods inherited from class org.logi.crypto.Crypto |
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readBlock, readInt, writeBytes, writeBytes, writeInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CipherKey key
protected byte[] r
protected boolean completed
Constructor Detail |
public QRAuth(CipherKey key)
key
.
Method Detail |
public boolean completed()
protected static void addOne(byte[] a)
public int maxMessageSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |