|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lava.security.des.TripleDesKey
DES key.
Details: This class defines a 3DES key, which can be used to initialize a TripleDesCipher.
bit ordering
Refer to the package summary for important information regarding bit ordering.
DesKey,
TripleDesEngine| Constructor Summary | |
TripleDesKey(byte[] bytes,
int offset)
Specifies key as a byte sequence. |
|
TripleDesKey(DesKey key1,
DesKey key2,
DesKey key3)
Specifies all three keys. |
|
TripleDesKey(int[] halves,
int offset)
Specifies 32-bit left and right halves. |
|
TripleDesKey(long[] keys,
int offset)
Specifies 64-bit keys. |
|
| Method Summary | |
boolean |
hasOddParity()
Tests for odd parity. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TripleDesKey(DesKey key1,
DesKey key2,
DesKey key3)
Details: This constructor initializes a new 3DES with the three given single-
key1 - the first keykey2 - the second keykey3 - the third key
public TripleDesKey(long[] keys,
int offset)
Details: This constructor initializes a new 3DES key using the three given 64-bit integers. The first key is index by offset.
keys - the 64-bit keysoffset - index of first key
public TripleDesKey(int[] halves,
int offset)
Details: This constructor initializes the key using the 32-bit left and right halves provided. The left half of the first key is index by offset and the right half is index by offset + 1.
halves - the left and right halvesoffset - index of left half
public TripleDesKey(byte[] bytes,
int offset)
Details: This constructor initializes the key using the given 24 bytes. The first 8 bytes make up the first key. The bytes are assembled in big endian order, and the first byte of the first key is indexed by offset
bytes - the byte arrayoffset - index of first byte| Method Detail |
public boolean hasOddParity()
Details: This method determines whether all three of the individual DES keys that make up this 3DES key have odd parity.
DesKey.hasOddParity()
|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||