![]() InvalidKeyException - is thrown if there is a problem with the Key instance the Cipher is being initialized with.ĬipherException This method verifies the AlgorithmIdentifier's Object ID and configures the Blowfish instance appropriately with the params of the AlgorithmIdentifier in addition to the SymmetricKey and padding identifier. Throws: AlgorithmIdentifierException - is thrown if the algID's OID isn't valid for the Cipher instance being initialized or if the params are not valid for the algID's OID. The internal instance will be erased when Cipher.erase() is called. key - is the SymmetricKey instance that will be cloned and used by the cipher internally. ![]() Specified by: initialize in class Cipher Parameters: algID - is the AlgorithmIdentifier whose params will be used to configure the cipher. InvalidKeyException This method verifies the AlgorithmIdentifier's OID and configures the Blowfish instance with data from the AlgorithmIdentifier and with BlockPadding set to NONE. Public void initialize( AlgorithmIdentifier algID, Parameters: mode - Cipher.ECB or Cipher.CBC Supported modes are ECB (default) and CBC. ![]() Create a Blowfish object with a given mode. Use the no-argument constructor and an initialize method instead. To use the Cipher, it must be initialized with a Key and algorithm parameters, usually in the form of an AlgorithmIdentifier.ĭeprecated. Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitĬreates an uninitialized Blowfish instance. Coderĭecode, decode, encode, encode, initialize CipherĪssertDecryption, assertEncryption, cloneKey, decodeOp, decrypt, decrypt, decrypt, decryptOp, encodeOp, encrypt, encrypt, encrypt, encryptOp, getDecryptionKey, getEncryptionKey, getInstance, getInstance, getInstance, getInstance, getInstance, getKey, getMode, pad, releaseOp, setRandomBitsSource, unpad BlockCipherīlockSize, decrypt, decrypt, encrypt, encrypt, getBlockSize, getIV, getPadding, getPaddingID, setIV, setPadding Use one of the initialize(.) methods instead. Modes should only be set when a BlockCipher is initialized. Use an initialize method instead.ĭeprecated. This method verifies the AlgorithmIdentifier's Object ID and configures the Blowfish instance appropriately with the params of the AlgorithmIdentifier in addition to the SymmetricKey and padding identifier.ĭeprecated. Initialize( AlgorithmIdentifier algID, SymmetricKey key, Padding.ID paddingID) This method verifies the AlgorithmIdentifier's OID and configures the Blowfish instance with data from the AlgorithmIdentifier and with BlockPadding set to NONE. Initialize( AlgorithmIdentifier algID, Key key) Use an encrypt method instead.Įrases any sensitive information stored in this BlockCipher object.īuilds an AlgorithmIdentifier that is a "snapshot" of the Cipher's current configuration. Performs the block cipher's basic encryption operation on one block of plaintext placing the result in the output buffer.ĮncryptOp(byte in, int inOff, byte out, int outOff)ĭeprecated. Use a decrypt method instead.ĮncryptBlock(byte input, int inOff, byte output, int outOff) Performs the block cipher's basic decryption operation on one block of ciphertext placing the result in the output buffer.ĭecryptOp(byte in, int inOff, byte out, int outOff)ĭeprecated. ![]() Returns the name of the algorithm which this coder implements.ĭecryptBlock(byte input, int inOff, byte output, int outOff) CipherĬBC, decryptionKey, ECB, encryptionKey, key, mode, NULL_PADDING, PKCS5_PADDING, rbsĬreates an uninitialized Blowfish instance.ĭeprecated. Public final class Blowfish extends BlockCipherĪ block cipher which implements Bruce Schneier's Blowfish algorithm.įor more information on the Blowfish algorithm, see Schneier's book Applied Cryptography or Counterpane Internet Security, Inc.įields inherited from class. SUMMARY: NESTED | FIELD | CONSTR | METHOD Oracle Security Developer Tools Crypto Java API Reference Blowfish (Oracle Security Developer Tools Crypto Java API Reference) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |