refabr.blogg.se

Block cipher
Block cipher







Unwraps a symmetric key using this cipher. UnwrapSymmetricKey(byte encKey, AlgorithmIdentifier algID) Sets the initialization vector for this block cipher. This method verifies the AlgorithmIdentifier's Object ID and configures the DES instance appropriately with the params of the AlgorithmIdentifier in addition to the Key. Initialize( AlgorithmIdentifier algID, Key key, RandomBitsSource rbs) Returns the Padding.ID constant value for this instance. Returns a clone of the initialization vector or null, if the IV is null. Performs the block cipher's basic encryption operation on one block of plaintext placing the result in the output buffer.Įrases any sensitive information stored in this BlockCipher object. Performs the block cipher's basic decryption operation on one block of ciphertext placing the result in the output buffer.Įncrypt(byte input, int inOff, int len, boolean pad)Įncrypts a sequence of bytes of specified length and, if specified, performs padding.Įncrypt(byte input, int inOff, int len, byte output, int outOff)Įncrypts a sequence of bytes of specified length and places the resulting ciphertext in the given output buffer starting at the given offset.ĮncryptBlock(byte input, int inOff, byte output, int outOff) Instantiates the BlockCipher with the block size of the actual instance.ĭecrypt(byte input, int inOff, int len, boolean unpad)ĭecrypts a sequence of bytes of specified length, and, if specified, returns the unpadded plaintext.ĭecrypt(byte input, int inOff, int len, byte output, int outOff)ĭecrypts a sequence of bytes of specified length and places the original plaintext message in the given output buffer starting at the given offset.ĭecryptBlock(byte input, int inOff, byte output, int outOff) Instantiates the BlockCipher with no block size. Holds the padding constant that will be used to determine the algorithm for to padding and unpadding data.įields inherited from class. Initialization vector that the current processes are based off of (equivalent to the old iv from Cipher), for use in CBC mode. Public abstract class BlockCipher extends Cipherĭefines the functionality and properties common to block ciphers such that subclasses should only have to override the initialize(), encryptBlock() and decryptBlock() methods.

block cipher

BlockCipher Direct Known Subclasses: AES, Blowfish, DES, DES_EDE, RC2 SUMMARY: NESTED | FIELD | CONSTR | METHOD Oracle Security Developer Tools Crypto FIPS Java API Reference BlockCipher (Oracle Security Developer Tools Crypto FIPS Java API Reference)









Block cipher