public class SelfTests
extends java.lang.Object
implements ru.CryptoPro.JCP.tools.SelfTesterStrings
Modifier and Type | Field and Description |
---|---|
static int |
DAY_IN_MS
Day in milliseconds.
|
static java.lang.String |
DEFAULT_TESTS_STRING_Crypto |
static java.lang.String |
DEFAULT_TESTS_STRING_JCP
default set of tests to run.
|
static int[] |
TRIVIAL_MASK |
static int[] |
TRIVIAL_MASK_512 |
CORRUPTED, EXC_CIPHER_CBC_STRING, EXC_CIPHER_CFB_STRING, EXC_CIPHER_CNT_STRING, EXC_CIPHER_ECB_STRING, EXC_CIPHER_IMITA_STRING, EXC_CIPHER_STRING, EXC_DIGEST_STORE_STRING, EXC_DIGEST_STRING, EXC_DIGEST_STRING_2012_256, EXC_DIGEST_STRING_2012_512, EXC_SIGN_FA_STRING, EXC_SIGN_IN_STRING, EXC_SIGN_PA_STRING, EXC_STRING, EXC_VERIFY_IN_STRING, HAS_BEEN_CHECKED, ILLEGAL_ACCESS_TO_THE_CLASS_TO_BE_TESTED, ILLEGAL_CLASS_NAME_TO_TEST, ILLEGAL_TEST_NAME_TO_REMOVE_FROM_SELF_TESTER, IS_BEEN_CHECKED, JAR_LIST_CONTAINS_REPEATS, SELF_TESTER_CTOR, SELF_TESTER_CTOR_OK, SELF_TESTER_RUN, TEST_PHI_WORKS_INCORRECTLY, TESTER_INITIALIZATION_IS_INCORRECT, THE_SPECIFIED_CLASS_CANNOT_PRODUCE_ANY_OBJECTS
Constructor and Description |
---|
SelfTests() |
Modifier and Type | Method and Description |
---|---|
static int[] |
getBlock(int i,
int[] arr)
For internal use.
|
static void |
printMakeSignatureException(byte[] expected,
byte[] res,
ParamsInterface paramsInterface) |
static void |
printVerifySignatureException(int res,
int[] signature,
ParamsInterface paramsInterface) |
static void |
testCBCDecrypt() |
static void |
testCBCEncrypt() |
static void |
testCFBDecrypt() |
static void |
testCFBEncrypt() |
static void |
testCNTDecrypt() |
static void |
testCNTEncrypt() |
static void |
testConstElliptic_2012_512() |
static void |
testConstElliptic() |
static void |
testConstKMTS() |
static void |
testDigest32Bytes() |
static void |
testDigest50Bytes_2012_256() |
static void |
testDigest50Bytes_2012_512() |
static void |
testDigest50Bytes() |
static void |
testDigestStore() |
static void |
testECBfullDecrypt() |
static void |
testECBfullEncrypt() |
static void |
testECBsimpleDecrypt() |
static void |
testECBsimpleEncrypt() |
static void |
testImita() |
static void |
testModPow128El() |
static void |
testPhi() |
static void |
testSign128El() |
static void |
testSign2012256El_01Test() |
static void |
testSign2012256El_Edw() |
static void |
testSign2012512El_A() |
static void |
testSign2012512El_C_Edw() |
static void |
testVerify128El() |
static void |
testVerify2012256El_01Test() |
static void |
testVerify2012256El_Edw() |
static void |
testVerify2012512El_A() |
static void |
testVerify2012512El_C_Edw() |
public static final int DAY_IN_MS
public static final java.lang.String DEFAULT_TESTS_STRING_JCP
SelfTesterBase
.public static final java.lang.String DEFAULT_TESTS_STRING_Crypto
public static final int[] TRIVIAL_MASK
public static final int[] TRIVIAL_MASK_512
public static void testDigest32Bytes() throws SelfTesterException
SelfTesterException
public static void testDigest50Bytes() throws SelfTesterException
SelfTesterException
public static void testDigest50Bytes_2012_256() throws SelfTesterException
SelfTesterException
public static void testDigest50Bytes_2012_512() throws SelfTesterException
SelfTesterException
public static void testSign128El() throws SelfTesterException
SelfTesterException
public static void testVerify128El() throws SelfTesterException
SelfTesterException
public static void testSign2012256El_01Test() throws SelfTesterException
SelfTesterException
public static void testVerify2012256El_01Test() throws SelfTesterException
SelfTesterException
public static void testSign2012256El_Edw() throws SelfTesterException
SelfTesterException
public static void testVerify2012256El_Edw() throws SelfTesterException
SelfTesterException
public static void testSign2012512El_A() throws SelfTesterException
SelfTesterException
public static void testVerify2012512El_A() throws SelfTesterException
SelfTesterException
public static void testSign2012512El_C_Edw() throws SelfTesterException
SelfTesterException
public static void testVerify2012512El_C_Edw() throws SelfTesterException
SelfTesterException
public static void testPhi() throws SelfTesterException
SelfTesterException
public static void testModPow128El() throws SelfTesterException
SelfTesterException
public static void testECBsimpleEncrypt() throws SelfTesterException
SelfTesterException
public static void testECBfullEncrypt() throws SelfTesterException
SelfTesterException
public static void testECBsimpleDecrypt() throws SelfTesterException
SelfTesterException
public static void testECBfullDecrypt() throws SelfTesterException
SelfTesterException
public static void testCNTEncrypt() throws SelfTesterException
SelfTesterException
public static void testCNTDecrypt() throws SelfTesterException
SelfTesterException
public static void testCFBEncrypt() throws SelfTesterException
SelfTesterException
public static void testCFBDecrypt() throws SelfTesterException
SelfTesterException
public static void testCBCEncrypt() throws SelfTesterException
SelfTesterException
public static void testCBCDecrypt() throws SelfTesterException
SelfTesterException
public static void testImita() throws SelfTesterException
SelfTesterException
public static void testConstKMTS() throws SelfTesterException
SelfTesterException
public static void testConstElliptic() throws SelfTesterException
SelfTesterException
public static void testConstElliptic_2012_512() throws SelfTesterException
SelfTesterException
public static void testDigestStore() throws SelfTesterException
SelfTesterException
public static int[] getBlock(int i, int[] arr)
i
- index of blockarr
- arraypublic static void printMakeSignatureException(byte[] expected, byte[] res, ParamsInterface paramsInterface) throws SelfTesterException
SelfTesterException
public static void printVerifySignatureException(int res, int[] signature, ParamsInterface paramsInterface) throws SelfTesterException
SelfTesterException