Home
last modified time | relevance | path

Searched refs:ctx2 (Results 1 – 2 of 2) sorted by relevance

/net-tools-latest/mbedtls-2.4.0/yotta/data/example-hashing/
Dmain.cpp68 mbedtls_sha256_context ctx2; in example() local
70 mbedtls_sha256_init(&ctx2); in example()
71 mbedtls_sha256_starts(&ctx2, 0); /* SHA-256, not 224 */ in example()
74 mbedtls_sha256_update(&ctx2, hello_buffer, 1); in example()
75 mbedtls_sha256_update(&ctx2, hello_buffer + 1, 1); in example()
76 mbedtls_sha256_update(&ctx2, hello_buffer + 2, hello_len - 2); in example()
78 mbedtls_sha256_finish(&ctx2, output2); in example()
82 mbedtls_sha256_free(&ctx2); in example()
/net-tools-latest/mbedtls-2.4.0/tests/suites/
Dtest_suite_rsa.function379 mbedtls_rsa_context ctx, ctx2; /* Also test mbedtls_rsa_copy() while at it */
382 mbedtls_rsa_init( &ctx2, MBEDTLS_RSA_PKCS_V15, 0 );
404 TEST_ASSERT( mbedtls_rsa_copy( &ctx2, &ctx ) == 0 );
408 TEST_ASSERT( mbedtls_rsa_check_pubkey( &ctx2 ) == 0 );
412 TEST_ASSERT( mbedtls_rsa_public( &ctx2, message_str, output ) == result );
415 hexify( output_str, output, ctx2.len );
422 mbedtls_rsa_free( &ctx2 );
434 mbedtls_rsa_context ctx, ctx2; /* Also test mbedtls_rsa_copy() while at it */
441 mbedtls_rsa_init( &ctx2, MBEDTLS_RSA_PKCS_V15, 0 );
482 TEST_ASSERT( mbedtls_rsa_copy( &ctx2, &ctx ) == 0 );
[all …]