Home
last modified time | relevance | path

Searched refs:priv_ctx (Results 1 – 6 of 6) sorted by relevance

/external/mbedtls/tests/suites/
Dtest_suite_lms.function15 mbedtls_lms_private_t priv_ctx;
19 mbedtls_lms_private_init( &priv_ctx );
24 TEST_EQUAL( mbedtls_lms_generate_private_key( &priv_ctx, MBEDTLS_LMS_SHA256_M32_H10,
29 TEST_EQUAL( mbedtls_lms_calculate_public_key( &pub_ctx, &priv_ctx ), 0 );
31 TEST_EQUAL( mbedtls_lms_sign( &priv_ctx, mbedtls_test_rnd_std_rand, NULL,
40 mbedtls_lms_private_free( &priv_ctx );
48 mbedtls_lms_private_t priv_ctx;
52 mbedtls_lms_private_init( &priv_ctx );
57 TEST_EQUAL( mbedtls_lms_generate_private_key( &priv_ctx, MBEDTLS_LMS_SHA256_M32_H10,
62 TEST_EQUAL( mbedtls_lms_calculate_public_key( &pub_ctx, &priv_ctx ), 0 );
[all …]
Dtest_suite_lmots.function36 mbedtls_lmots_private_t priv_ctx;
40 mbedtls_lmots_private_init( &priv_ctx );
42 TEST_EQUAL( mbedtls_lmots_generate_private_key(&priv_ctx, MBEDTLS_LMOTS_SHA256_N32_W8,
44 TEST_EQUAL( mbedtls_lmots_calculate_public_key(&pub_ctx, &priv_ctx), 0 );
45 TEST_EQUAL( mbedtls_lmots_sign(&priv_ctx, &mbedtls_test_rnd_std_rand, NULL,
51 mbedtls_lmots_private_free( &priv_ctx );
59 mbedtls_lmots_private_t priv_ctx;
63 mbedtls_lmots_private_init( &priv_ctx );
65 TEST_EQUAL( mbedtls_lmots_generate_private_key(&priv_ctx, MBEDTLS_LMOTS_SHA256_N32_W8,
67 TEST_EQUAL( mbedtls_lmots_calculate_public_key(&pub_ctx, &priv_ctx), 0 );
[all …]
/external/mbedtls/library/
Dlmots.c687 const mbedtls_lmots_private_t *priv_ctx ) in mbedtls_lmots_calculate_public_key() argument
693 if( !priv_ctx->have_private_key ) in mbedtls_lmots_calculate_public_key()
698 ret = hash_digit_array( &priv_ctx->params, in mbedtls_lmots_calculate_public_key()
699 ( unsigned char * )priv_ctx->private_key, NULL, in mbedtls_lmots_calculate_public_key()
706 ret = public_key_from_hashed_digit_array( &priv_ctx->params, in mbedtls_lmots_calculate_public_key()
714 memcpy( &ctx->params, &priv_ctx->params, in mbedtls_lmots_calculate_public_key()
Dlms.c660 const mbedtls_lms_private_t *priv_ctx ) in mbedtls_lms_calculate_public_key() argument
665 if( ! priv_ctx->have_private_key ) in mbedtls_lms_calculate_public_key()
670 if( priv_ctx->params.type in mbedtls_lms_calculate_public_key()
676 if( priv_ctx->params.otstype in mbedtls_lms_calculate_public_key()
682 memcpy( &ctx->params, &priv_ctx->params, in mbedtls_lms_calculate_public_key()
685 ret = calculate_merkle_tree( priv_ctx, ( unsigned char * )tree ); in mbedtls_lms_calculate_public_key()
Dlmots.h281 const mbedtls_lmots_private_t *priv_ctx );
/external/mbedtls/include/mbedtls/
Dlms.h401 const mbedtls_lms_private_t *priv_ctx );