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

public final Class DefaultXMSSOid

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

XMSSOid class.

Field Summary

Modifier and TypeField and Description
private final int
oid

OID.

private static final Map<String, DefaultXMSSOid>
oidLookupTable

XMSS OID lookup table.

private final String
stringRepresentation

String representation of OID.

Constructor Summary

AccessConstructor and Description
private
DefaultXMSSOid(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
)

Create a key based on parameters.

public int

Returns:

OID.
getOid
()

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

Getter OID.

public static DefaultXMSSOid

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
)

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, DefaultXMSSOid> oidLookupTable

XMSS OID lookup table.

stringRepresentationback to summary
private final String stringRepresentation

String representation of OID.

Constructor Detail

DefaultXMSSOidback to summary
private DefaultXMSSOid(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)

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 DefaultXMSSOid lookup(String algorithmName, int digestSize, int winternitzParameter, int len, int height)

Lookup OID.

Parameters
algorithmName:String

Algorithm name.

winternitzParameter:int

Winternitz parameter.

height:int

Binary tree height.

Returns:DefaultXMSSOid

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

Annotations
@Override