|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface that must be implemented by symmetric block ciphers. This interface is based on work in the Freenet cryptography architecture
Method Summary | |
void |
decrypt(byte[] block,
byte[] result)
Deciphers the contents of block where block must be equal to getBlockSize()/8. |
void |
encrypt(byte[] block,
byte[] result)
Enciphers the contents of block where block must be equal to getBlockSize()/8. |
int |
getBlockSize()
Returns the block size, in bits, of the given block-cipher |
int |
getKeySize()
Returns the key size, in bits, of the given block-cipher |
void |
initialize(byte[] key)
Initializes the cipher context with the given key. |
Method Detail |
public void initialize(byte[] key)
public int getKeySize()
public int getBlockSize()
public void encrypt(byte[] block, byte[] result)
public void decrypt(byte[] block, byte[] result)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |