Latest update, add TLS 1.3 session time configuration.
This commit is contained in:
+11
-6
@@ -15,19 +15,21 @@
|
||||
#include "internal/nelem.h"
|
||||
#include "testutil.h"
|
||||
|
||||
#define TEST_SIZE 128
|
||||
#define BIG_TEST_SIZE 10240
|
||||
#if !OPENSSL_API_3
|
||||
|
||||
#if BIG_TEST_SIZE < TEST_SIZE
|
||||
#error BIG_TEST_SIZE is smaller than TEST_SIZE
|
||||
#endif
|
||||
# define TEST_SIZE 128
|
||||
# define BIG_TEST_SIZE 10240
|
||||
|
||||
# if BIG_TEST_SIZE < TEST_SIZE
|
||||
# error BIG_TEST_SIZE is smaller than TEST_SIZE
|
||||
# endif
|
||||
|
||||
static unsigned char rkey[16];
|
||||
static unsigned char rkey2[16];
|
||||
static unsigned char plaintext[BIG_TEST_SIZE];
|
||||
static unsigned char saved_iv[AES_BLOCK_SIZE * 4];
|
||||
|
||||
#define MAX_VECTOR_SIZE 64
|
||||
# define MAX_VECTOR_SIZE 64
|
||||
|
||||
struct ige_test {
|
||||
const unsigned char key[16];
|
||||
@@ -432,9 +434,11 @@ static int test_bi_ige_garble3(void)
|
||||
/* Fail if there is more than 1% matching bytes */
|
||||
return TEST_size_t_le(matches, sizeof(checktext) / 100);
|
||||
}
|
||||
#endif
|
||||
|
||||
int setup_tests(void)
|
||||
{
|
||||
#if !OPENSSL_API_3
|
||||
RAND_bytes(rkey, sizeof(rkey));
|
||||
RAND_bytes(rkey2, sizeof(rkey2));
|
||||
RAND_bytes(plaintext, sizeof(plaintext));
|
||||
@@ -450,5 +454,6 @@ int setup_tests(void)
|
||||
ADD_TEST(test_bi_ige_garble3);
|
||||
ADD_ALL_TESTS(test_ige_vectors, OSSL_NELEM(ige_test_vectors));
|
||||
ADD_ALL_TESTS(test_bi_ige_vectors, OSSL_NELEM(bi_ige_test_vectors));
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user