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. | |
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.
| SvmkShadow | ( | int | version, |
| byte[] | shadow ) |
A constructor to initialize the shadow M of N.
| version | Shadow version. Use TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V1_TYPE or TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V2_TYPE. |
| shadow | Shadow data. Maximum size TacNDJavaLib#DN_SC_M_OF_N_SHADOW_MAX_LEN. |
| int getVersion | ( | ) |
Returns the shadow version.
| byte[] getShadow | ( | ) |
Returns the raw data from the shadow.
The actual size of the data depends on the version:
TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V1_TYPE — first TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V1_MAX_LEN bytes. TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V2_TYPE — first TacNDJavaLib#DN_SC_M_OF_N_SHADOW_V2_MAX_LEN bytes.