gnu.crypto.jce.params
Class BlockCipherParameters
AlgorithmParametersSpi
gnu.crypto.jce.params.BlockCipherParameters
public class BlockCipherParameters
extends AlgorithmParametersSpi
An implementation of algorithm parameters for the GNU Crypto block
ciphers. This encompasses the cipher's block size, its key size, and
an optional initialization vector (IV).
Version:
engineGetEncoded
protected byte[] engineGetEncoded()
throws IOException
Return these parameters encoded in ASN.1 (DER).
For GNU Crypto block ciphers we will define these parameters as
BlockCipherParameters ::= SEQUENCE {
blockSize INTEGER,
keySize INTEGER,
initializationVector OCTET STRING OPTIONAL }
- The parameters, encoded an an ASN.1 DER sequence.
engineGetEncoded
protected byte[] engineGetEncoded(String format)
throws IOException
engineGetParameterSpec
protected AlgorithmParameterSpec engineGetParameterSpec(Class c)
throws InvalidParameterSpecException
engineInit
protected void engineInit(AlgorithmParameterSpec spec)
throws InvalidParameterSpecException
engineInit
protected void engineInit(byte[] encoded)
throws IOException
engineInit
protected void engineInit(byte[] encoded,
String format)
throws IOException
engineToString
protected String engineToString()
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.