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

public Class TweakableBlockCipherParameters

extends Object
implements CipherParameters
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.CipherParameters
Imports
org.bouncycastle.crypto.CipherParameters, org.bouncycastle.util.Arrays

Parameters for tweakable block ciphers.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
TweakableBlockCipherParameters(final KeyParameter key, final byte[] tweak)

Method Summary

Modifier and TypeMethod and Description
public KeyParameter

Returns:

the key to use, or null to use the current key.
getKey
()

Gets the key.

public byte[]

Returns:

the tweak to use, or null to use the current tweak.
getTweak
()

Gets the tweak value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
private final KeyParameter key
tweakback to summary
private final byte[] tweak

Constructor Detail

TweakableBlockCipherParametersback to summary
public TweakableBlockCipherParameters(final KeyParameter key, final byte[] tweak)

Method Detail

getKeyback to summary
public KeyParameter getKey()

Gets the key.

Returns:KeyParameter

the key to use, or null to use the current key.

getTweakback to summary
public byte[] getTweak()

Gets the tweak value.

Returns:byte[]

the tweak to use, or null to use the current tweak.