Top Description Fields Constructors Methods
org.bouncycastle.crypto.engines

public Class DSTU7624WrapEngine

extends Object
implements Wrapper
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Wrapper
Imports
java.util.ArrayList, org.bouncycastle.crypto.CipherParameters, .DataLengthException, .InvalidCipherTextException, .Wrapper, org.bouncycastle.crypto.params.KeyParameter, .ParametersWithRandom, org.bouncycastle.util.Arrays

Implementation of DSTU7624 KEY WRAP mode

Field Summary

Modifier and TypeField and Description
private byte[]
B

private ArrayList<byte[]>
private static final int
private byte[]
private DSTU7624Engine
private boolean
private byte[]
private byte[]

Constructor Summary

AccessConstructor and Description
public
DSTU7624WrapEngine(int blockBitLength)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithmName()

Implements org.bouncycastle.crypto.Wrapper.getAlgorithmName.

Return the name of the algorithm the wrapper implements.
public void
init(boolean forWrapping, CipherParameters param)

Implements org.bouncycastle.crypto.Wrapper.init.

private void
intToBytes(int number, byte[] outBytes, int outOff)

public byte[]
unwrap(byte[] in, int inOff, int inLen)

Implements org.bouncycastle.crypto.Wrapper.unwrap.

public byte[]
wrap(byte[] in, int inOff, int inLen)

Implements org.bouncycastle.crypto.Wrapper.wrap.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Bback to summary
private byte[] B
Btempback to summary
private ArrayList<byte[]> Btemp
BYTES_IN_INTEGERback to summary
private static final int BYTES_IN_INTEGER
checkSumArrayback to summary
private byte[] checkSumArray
engineback to summary
private DSTU7624Engine engine
forWrappingback to summary
private boolean forWrapping
intArrayback to summary
private byte[] intArray
zeroArrayback to summary
private byte[] zeroArray

Constructor Detail

DSTU7624WrapEngineback to summary
public DSTU7624WrapEngine(int blockBitLength)

Method Detail

getAlgorithmNameback to summary
public String getAlgorithmName()

Implements org.bouncycastle.crypto.Wrapper.getAlgorithmName.

Doc from org.bouncycastle.crypto.Wrapper.getAlgorithmName.

Return the name of the algorithm the wrapper implements.

Returns:String

the name of the algorithm the wrapper implements.

initback to summary
public void init(boolean forWrapping, CipherParameters param)

Implements org.bouncycastle.crypto.Wrapper.init.

intToBytesback to summary
private void intToBytes(int number, byte[] outBytes, int outOff)
unwrapback to summary
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException

Implements org.bouncycastle.crypto.Wrapper.unwrap.

wrapback to summary
public byte[] wrap(byte[] in, int inOff, int inLen)

Implements org.bouncycastle.crypto.Wrapper.wrap.