APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.crypto.provider

pack-priv final Class BlockCipherParamsCore

extends Object
Class Inheritance
Imports
java.io.*, java.util.Arrays, sun.security.util.*, .HexDumpEncoder, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, javax.crypto.spec.IvParameterSpec

This class implements the parameter (IV) used with Block Ciphers in feedback-mode. IV is defined in the standards as follows:
IV ::= OCTET STRING  -- length depends on the block size of the
block ciphers
Author
Valerie Peng

Field Summary

Modifier and TypeField and Description
private final int
private byte[]
private final int[]

Constructor Summary

AccessConstructor and Description
pack-priv
BlockCipherParamsCore(int blksize, int... moreSizes)

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
pack-priv byte[]
getEncoded(String encodingMethod)

pack-priv <T extends AlgorithmParameterSpec> T
getParameterSpec(Class<T> paramSpec)

pack-priv void
pack-priv void
init(byte[] encoded)

pack-priv void
init(byte[] encoded, String decodingMethod)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

block_sizeback to summary
private final int block_size
ivback to summary
private byte[] iv
moreSizesback to summary
private final int[] moreSizes

Constructor Detail

BlockCipherParamsCoreback to summary
pack-priv BlockCipherParamsCore(int blksize, int... moreSizes)

Method Detail

getEncodedback to summary
pack-priv byte[] getEncoded() throws IOException
getEncodedback to summary
pack-priv byte[] getEncoded(String encodingMethod) throws IOException
getParameterSpecback to summary
pack-priv <T extends AlgorithmParameterSpec> T getParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException
initback to summary
pack-priv void init(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
initback to summary
pack-priv void init(byte[] encoded) throws IOException
initback to summary
pack-priv void init(byte[] encoded, String decodingMethod) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.