Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.lms

public Class LMSContext

extends Object
implements Digest
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Digest
Imports
org.bouncycastle.crypto.Digest

Field Summary

Modifier and TypeField and Description
private final byte[]
C

private volatile Digest
private final LMOtsPrivateKey
private final byte[][]
private final LMOtsPublicKey
private final Object
private LMSSignedPubKey[]
private final LMSigParameters

Constructor Summary

AccessConstructor and Description
public
LMSContext(LMOtsPrivateKey key, LMSigParameters sigParams, Digest digest, byte[] C, byte[][] path)

public
LMSContext(LMOtsPublicKey publicKey, Object signature, Digest digest)

Method Summary

Modifier and TypeMethod and Description
public int
doFinal(byte[]
the array the digest is to be copied into.
out
,
int
the offset into the out array the digest is to start at.
outOff
)

Implements org.bouncycastle.crypto.Digest.doFinal.

close the digest, producing the final digest value.
public String
pack-priv byte[]
getC()

public int
getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

return the size, in bytes, of the digest produced by this message digest.
pack-priv byte[][]
pack-priv LMOtsPrivateKey
public LMOtsPublicKey
pack-priv byte[]
getQ()

public Object
pack-priv LMSSignedPubKey[]
pack-priv LMSigParameters
public void
reset()

Implements org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.
public void
update(byte
the input byte to be entered.
in
)

Implements org.bouncycastle.crypto.Digest.update.

update the message digest with a single byte.
public void
update(byte[]
the byte array containing the data.
in
,
int
the offset into the byte array where the data starts.
inOff
,
int
the length of the data.
len
)

Implements org.bouncycastle.crypto.Digest.update.

update the message digest with a block of bytes.
pack-priv LMSContext
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Cback to summary
private final byte[] C
digestback to summary
private volatile Digest digest
keyback to summary
private final LMOtsPrivateKey key
pathback to summary
private final byte[][] path
publicKeyback to summary
private final LMOtsPublicKey publicKey
signatureback to summary
private final Object signature
signedPubKeysback to summary
private LMSSignedPubKey[] signedPubKeys
sigParamsback to summary
private final LMSigParameters sigParams

Constructor Detail

LMSContextback to summary
public LMSContext(LMOtsPrivateKey key, LMSigParameters sigParams, Digest digest, byte[] C, byte[][] path)
LMSContextback to summary
public LMSContext(LMOtsPublicKey publicKey, Object signature, Digest digest)

Method Detail

doFinalback to summary
public int doFinal(byte[] out, int outOff)

Implements org.bouncycastle.crypto.Digest.doFinal.

Doc from org.bouncycastle.crypto.Digest.doFinal.

close the digest, producing the final digest value. The doFinal call leaves the digest reset.

Parameters
out:byte[]

the array the digest is to be copied into.

outOff:int

the offset into the out array the digest is to start at.

getAlgorithmNameback to summary
public String getAlgorithmName()

Implements org.bouncycastle.crypto.Digest.getAlgorithmName.

Doc from org.bouncycastle.crypto.Digest.getAlgorithmName.

return the algorithm name

Returns:String

the algorithm name

getCback to summary
pack-priv byte[] getC()
getDigestSizeback to summary
public int getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

Doc from org.bouncycastle.crypto.Digest.getDigestSize.

return the size, in bytes, of the digest produced by this message digest.

Returns:int

the size, in bytes, of the digest produced by this message digest.

getPathback to summary
pack-priv byte[][] getPath()
getPrivateKeyback to summary
pack-priv LMOtsPrivateKey getPrivateKey()
getPublicKeyback to summary
public LMOtsPublicKey getPublicKey()
getQback to summary
pack-priv byte[] getQ()
getSignatureback to summary
public Object getSignature()
getSignedPubKeysback to summary
pack-priv LMSSignedPubKey[] getSignedPubKeys()
getSigParamsback to summary
pack-priv LMSigParameters getSigParams()
resetback to summary
public void reset()

Implements org.bouncycastle.crypto.Digest.reset.

Doc from org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.

updateback to summary
public void update(byte in)

Implements org.bouncycastle.crypto.Digest.update.

Doc from org.bouncycastle.crypto.Digest.update.

update the message digest with a single byte.

Parameters
in:byte

the input byte to be entered.

updateback to summary
public void update(byte[] in, int inOff, int len)

Implements org.bouncycastle.crypto.Digest.update.

Doc from org.bouncycastle.crypto.Digest.update.

update the message digest with a block of bytes.

Parameters
in:byte[]

the byte array containing the data.

inOff:int

the offset into the byte array where the data starts.

len:int

the length of the data.

withSignedPublicKeysback to summary
pack-priv LMSContext withSignedPublicKeys(LMSSignedPubKey[] signedPubKeys)