DINAMO Networks is now aDINAMO cyber security company!
Java API
HSM DINAMO
Loading...
Searching...
No entry found
SvmkShadow Class Reference

Shadow M of N of an SVMK (Secret Master Key). More...

Public Methods

 SvmkShadow (int version, byte[] shadow)
 A constructor to initialize the shadow M of N.
 
int getVersion ()
 Returns the shadow version.
 
byte[] getShadow ()
 Returns the raw data from the shadow.
 

Detailed description

Shadow M of N of an SVMK (Secret Master Key).

Returned by Dinamo#generateSVMK(int, byte[], int, int) and passed as input to Dinamo#recoverSVMK(SvmkShadow[]). Each shadow corresponds to a portion of the secret distributed to a custodian.

See also
TacNDJavaLib.DN_SC_M_OF_N_SHADOW_V1_TYPE
TacNDJavaLib.DN_SC_M_OF_N_SHADOW_V2_TYPE
TacNDJavaLib.DN_SC_M_OF_N_SHADOW_MAX_LEN

Builders and Destructors

◆ SvmkShadow()

SvmkShadow ( int version,
byte[] shadow )

A constructor to initialize the shadow M of N.

Parameters
versionShadow version. Use TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V1_TYPE or TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V2_TYPE.
shadowShadow data. Maximum size TacNDJavaLib#DN_SC_M_OF_N_SHADOW_MAX_LEN.

Function documentation

◆ getVersion()

int getVersion ( )

◆ getShadow()

byte[] getShadow ( )

Returns the raw data from the shadow.

The actual size of the data depends on the version:

Returns
Raw data from Shadow.