gnu.crypto.jce.params

Class 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: $Revision: 1.3 $

Field Summary
protected BlockCipherParameterSpeccipherSpec
The underlying block cipher specification.
Method Summary
protected byte[]engineGetEncoded()
Return these parameters encoded in ASN.1 (DER).
protected byte[]engineGetEncoded(String format)
protected AlgorithmParameterSpecengineGetParameterSpec(Class c)
protected voidengineInit(AlgorithmParameterSpec spec)
protected voidengineInit(byte[] encoded, String format)
protected voidengineInit(byte[] encoded)
protected StringengineToString()

Field Detail

cipherSpec

protected BlockCipherParameterSpec cipherSpec
The underlying block cipher specification.

Method Detail

engineGetEncoded

protected byte[] engineGetEncoded()
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 }

Returns: The parameters, encoded an an ASN.1 DER sequence.

Throws: java.io.IOException If encoding these parameters fails.

engineGetEncoded

protected byte[] engineGetEncoded(String format)

engineGetParameterSpec

protected AlgorithmParameterSpec engineGetParameterSpec(Class c)

engineInit

protected void engineInit(AlgorithmParameterSpec spec)

engineInit

protected void engineInit(byte[] encoded, String format)

engineInit

protected void engineInit(byte[] encoded)

engineToString

protected String engineToString()
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.