Class cryptix.pgp.CFB
All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.pgp.CFB
java.lang.Object
|
+----cryptix.security.StreamCipher
|
+----cryptix.security.CFB
|
+----cryptix.pgp.CFB
- public class CFB
- extends CFB
This class implements PGPs (ie. Zimmermans) non-standard CFB mode.
(For standard method, see Schneier, AppCrypto 9.6).
Copyright © 1995, 1996, 1997
Systemics Ltd
on behalf of the
Cryptix Development Team.
All rights reserved.
-
CFB(BlockCipher)
-
-
decrypt(byte[], int, byte[], int, int)
- This function decrypts a block of data.
-
encrypt(byte[], int, byte[], int, int)
- This function encrypts a block of data.
CFB
public CFB(BlockCipher cipher_)
encrypt
public void encrypt(byte in[],
int in_offset,
byte out[],
int out_offset,
int length)
- This function encrypts a block of data.
The contents of the array in will not be changed,
but will instead store the result in the array out.
The arrays can, however, be the same.
- Parameters:
- in - The plain text to be encrypted.
- in_offset - The offset within the in buffer.
- out - Where the encrypted cipher text will be stored.
- out_offset - The offset within the out buffer.
- length - The length to encrypt.
- Overrides:
- encrypt in class CFB
decrypt
public void decrypt(byte in[],
int in_offset,
byte out[],
int out_offset,
int length)
- This function decrypts a block of data.
The contents of the array in will not be changed,
but will instead store the result in the array out.
The arrays can, however, be the same.
- Parameters:
- in - The cipher text to be decrypted.
- in_offset - The offset within the in buffer.
- out - Where the decrypted plain text will be stored.
- out_offset - The offset within the out buffer.
- length - The length to decrypt.
- Overrides:
- decrypt in class CFB
All Packages Class Hierarchy This Package Previous Next Index