Top Description Fields Constructors Methods
org.bouncycastle.pqc.crypto.xmss

public final Class DefaultXMSSMTOid

extends Object
implements XMSSOid
Class Inheritance
All Implemented Interfaces
org.bouncycastle.pqc.crypto.xmss.XMSSOid
Imports
java.util.Collections, .HashMap, .Map

XMSSOid^MT class.

Field Summary

Modifier and TypeField and Description
private final int
oid

OID.

private static final Map<String, DefaultXMSSMTOid>
oidLookupTable

XMSS^MT OID lookup table.

private final String
stringRepresentation

String representation of OID.

Constructor Summary

AccessConstructor and Description
private
DefaultXMSSMTOid(int
OID.
oid
,
String
String representation of OID.
stringRepresentation
)

Constructor...

Method Summary

Modifier and TypeMethod and Description
private static String

Returns:

String representation of parameters for lookup table.
createKey
(String
Algorithm name.
algorithmName
,
int digestSize, int
Winternitz Parameter.
winternitzParameter
,
int len, int
Binary tree height.
height
,
int layers)

Create a key based on parameters.

public int

Returns:

OID.
getOid
()

Implements org.bouncycastle.pqc.crypto.xmss.XMSSOid.getOid.

Getter OID.

public static DefaultXMSSMTOid

Returns:

XMSS OID if parameters were found, null else.
lookup
(String
Algorithm name.
algorithmName
,
int digestSize, int
Winternitz parameter.
winternitzParameter
,
int len, int
Binary tree height.
height
,
int layers)

Lookup OID.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.bouncycastle.pqc.crypto.xmss.XMSSOid.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

oidback to summary
private final int oid

OID.

oidLookupTableback to summary
private static final Map<String, DefaultXMSSMTOid> oidLookupTable

XMSS^MT OID lookup table.

stringRepresentationback to summary
private final String stringRepresentation

String representation of OID.

Constructor Detail

DefaultXMSSMTOidback to summary
private DefaultXMSSMTOid(int oid, String stringRepresentation)

Constructor...

Parameters
oid:int

OID.

stringRepresentation:String

String representation of OID.

Method Detail

createKeyback to summary
private static String createKey(String algorithmName, int digestSize, int winternitzParameter, int len, int height, int layers)

Create a key based on parameters.

Parameters
algorithmName:String

Algorithm name.

winternitzParameter:int

Winternitz Parameter.

height:int

Binary tree height.

Returns:String

String representation of parameters for lookup table.

getOidback to summary
public int getOid()

Implements org.bouncycastle.pqc.crypto.xmss.XMSSOid.getOid.

Getter OID.

Returns:int

OID.

lookupback to summary
public static DefaultXMSSMTOid lookup(String algorithmName, int digestSize, int winternitzParameter, int len, int height, int layers)

Lookup OID.

Parameters
algorithmName:String

Algorithm name.

winternitzParameter:int

Winternitz parameter.

height:int

Binary tree height.

Returns:DefaultXMSSMTOid

XMSS OID if parameters were found, null else.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.bouncycastle.pqc.crypto.xmss.XMSSOid.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.

Returns:String

a string representation of the object