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

public Class AsconEngine

extends AsconBaseEngine
Class Inheritance
Imports
org.bouncycastle.crypto.CipherParameters, org.bouncycastle.util.Pack

Deprecated

Now superseded. Please refer to AsconAEAD128Engine for future implementations.

The AsconEngine class provides an implementation of ASCON AEAD version 1.2, based on the official specification available at: https://ascon.iaik.tugraz.at/ and the updated specification document from the NIST competition: ASCON Specification (Finalist Round) .

This version references the C reference implementation provided by NIST, available at: ASCON C Reference Implementation (NIST Round 2) .

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final AsconEngine.AsconParameters
private long
Inherited from org.bouncycastle.crypto.engines.AsconBaseEngine:
ASCON_AEAD_RATEASCON_IVdsepK0K1m_bufm_bufferSizeDecryptm_bufPosm_stateN0N1nrx0x1x2x3x4

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
private void
public String
protected void
init(byte[] key, byte[] iv)

Implements abstract org.bouncycastle.crypto.engines.AEADBaseEngine.init.

protected long
loadBytes(byte[] in, int inOff)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.loadBytes.

protected long
protected void
protected void
processFinalDecrypt(byte[] input, int inLen, byte[] output, int outOff)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.processFinalDecrypt.

protected void
processFinalEncrypt(byte[] input, int inLen, byte[] output, int outOff)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.processFinalEncrypt.

protected void
setBytes(long n, byte[] bs, int off)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.setBytes.

Inherited from org.bouncycastle.crypto.engines.AsconBaseEngine:
checkAADcheckDatadoFinalgetOutputSizegetUpdateOutputSizepprocessAADByteprocessAADBytesprocessBufferAADprocessBufferDecryptprocessBufferEncryptprocessBytesreset

Field Detail

asconParametersback to summary
private final AsconEngine.AsconParameters asconParameters
K2back to summary
private long K2

Constructor Detail

AsconEngineback to summary
public AsconEngine(AsconEngine.AsconParameters asconParameters)

Method Detail

ascon_aeadinitback to summary
protected void ascon_aeadinit()

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.ascon_aeadinit.

finishDataback to summary
private void finishData(AsconBaseEngine.State nextState)
getAlgorithmVersionback to summary
public String getAlgorithmVersion()

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.getAlgorithmVersion.

initback to summary
protected void init(byte[] key, byte[] iv) throws IllegalArgumentException

Implements abstract org.bouncycastle.crypto.engines.AEADBaseEngine.init.

loadBytesback to summary
protected long loadBytes(byte[] in, int inOff)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.loadBytes.

Annotations
@Override
padback to summary
protected long pad(int i)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.pad.

processFinalAadBlockback to summary
protected void processFinalAadBlock()

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.processFinalAadBlock.

processFinalDecryptback to summary
protected void processFinalDecrypt(byte[] input, int inLen, byte[] output, int outOff)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.processFinalDecrypt.

processFinalEncryptback to summary
protected void processFinalEncrypt(byte[] input, int inLen, byte[] output, int outOff)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.processFinalEncrypt.

setBytesback to summary
protected void setBytes(long n, byte[] bs, int off)

Implements abstract org.bouncycastle.crypto.engines.AsconBaseEngine.setBytes.

Annotations
@Override
org.bouncycastle.crypto.engines back to summary

public final Enum AsconEngine.AsconParameters

extends Enum<AsconEngine.AsconParameters>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AsconEngine.AsconParameters
public static final AsconEngine.AsconParameters
public static final AsconEngine.AsconParameters

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AsconEngine.AsconParameters
public static AsconEngine.AsconParameters[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ascon128back to summary
public static final AsconEngine.AsconParameters ascon128
ascon128aback to summary
public static final AsconEngine.AsconParameters ascon128a
ascon80pqback to summary
public static final AsconEngine.AsconParameters ascon80pq

Constructor Detail

AsconParametersback to summary
private AsconParameters()

Method Detail

valueOfback to summary
public static AsconEngine.AsconParameters valueOf(String name)
valuesback to summary
public static AsconEngine.AsconParameters[] values()