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

pack-priv final Class WOTSPlusOid

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

WOTS+ OID class.

Field Summary

Modifier and TypeField and Description
private final int
oid

OID.

private static final Map<String, WOTSPlusOid>
oidLookupTable

XMSS OID lookup table.

private final String
stringRepresentation

String representation of OID.

Constructor Summary

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

Create a key based on parameters.

public int

Returns:

OID.
getOid
()

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

Getter OID.
protected static WOTSPlusOid

Returns:

WOTS+ OID if parameters were found, null else.
lookup
(String
Algorithm name.
algorithmName
,
int digestSize, int
Winternitz parameter.
winternitzParameter
,
int len)

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

XMSS OID lookup table.

stringRepresentationback to summary
private final String stringRepresentation

String representation of OID.

Constructor Detail

WOTSPlusOidback to summary
private WOTSPlusOid(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)

Create a key based on parameters.

Parameters
algorithmName:String

Algorithm name.

winternitzParameter:int

Winternitz Parameter.

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
protected static WOTSPlusOid lookup(String algorithmName, int digestSize, int winternitzParameter, int len)

Lookup OID.

Parameters
algorithmName:String

Algorithm name.

winternitzParameter:int

Winternitz parameter.

Returns:WOTSPlusOid

WOTS+ 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.

Returns:String

a string representation of the object.