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
SelfTesterExceptionpublic static void testDigest50Bytes()
throws SelfTesterException
SelfTesterExceptionpublic static void testDigest50Bytes_2012_256()
throws SelfTesterException
SelfTesterExceptionpublic static void testDigest50Bytes_2012_512()
throws SelfTesterException
SelfTesterExceptionpublic static void testSign128El()
throws SelfTesterException
SelfTesterExceptionpublic static void testVerify128El()
throws SelfTesterException
SelfTesterExceptionpublic static void testSign2012256El_01Test()
throws SelfTesterException
SelfTesterExceptionpublic static void testVerify2012256El_01Test()
throws SelfTesterException
SelfTesterExceptionpublic static void testSign2012256El_Edw()
throws SelfTesterException
SelfTesterExceptionpublic static void testVerify2012256El_Edw()
throws SelfTesterException
SelfTesterExceptionpublic static void testSign2012512El_A()
throws SelfTesterException
SelfTesterExceptionpublic static void testVerify2012512El_A()
throws SelfTesterException
SelfTesterExceptionpublic static void testSign2012512El_C_Edw()
throws SelfTesterException
SelfTesterExceptionpublic static void testVerify2012512El_C_Edw()
throws SelfTesterException
SelfTesterExceptionpublic static void testPhi()
throws SelfTesterException
SelfTesterExceptionpublic static void testModPow128El()
throws SelfTesterException
SelfTesterExceptionpublic static void testECBsimpleEncrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testECBfullEncrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testECBsimpleDecrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testECBfullDecrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testCNTEncrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testCNTDecrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testCFBEncrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testCFBDecrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testCBCEncrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testCBCDecrypt()
throws SelfTesterException
SelfTesterExceptionpublic static void testImita()
throws SelfTesterException
SelfTesterExceptionpublic static void testConstKMTS()
throws SelfTesterException
SelfTesterExceptionpublic static void testConstElliptic()
throws SelfTesterException
SelfTesterExceptionpublic static void testConstElliptic_2012_512()
throws SelfTesterException
SelfTesterExceptionpublic static void testDigestStore()
throws SelfTesterException
SelfTesterExceptionpublic static int[] getBlock(int i,
int[] arr)
i - index of blockarr - arraypublic static void printMakeSignatureException(byte[] expected,
byte[] res,
ParamsInterface paramsInterface)
throws SelfTesterException
SelfTesterExceptionpublic static void printVerifySignatureException(int res,
int[] signature,
ParamsInterface paramsInterface)
throws SelfTesterException
SelfTesterException