Home
last modified time | relevance | path

Searched refs:prv (Results 1 – 14 of 14) sorted by relevance

/AliOS-Things-master/components/mbedtls/library/
A Dssl_cache.c145 mbedtls_ssl_cache_entry *cur, *prv; in mbedtls_ssl_cache_set() local
154 prv = NULL; in mbedtls_ssl_cache_set()
180 prv = cur; in mbedtls_ssl_cache_set()
216 prv->next = cur; in mbedtls_ssl_cache_set()
231 if( prv == NULL ) in mbedtls_ssl_cache_set()
234 prv->next = cur; in mbedtls_ssl_cache_set()
303 mbedtls_ssl_cache_entry *cur, *prv; in mbedtls_ssl_cache_free() local
309 prv = cur; in mbedtls_ssl_cache_free()
312 mbedtls_ssl_session_free( &prv->session ); in mbedtls_ssl_cache_free()
315 mbedtls_free( prv->peer_cert.p ); in mbedtls_ssl_cache_free()
[all …]
A Dpk.c469 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv ) in mbedtls_pk_check_pair() argument
472 PK_VALIDATE_RET( prv != NULL ); in mbedtls_pk_check_pair()
475 prv->pk_info == NULL || in mbedtls_pk_check_pair()
476 prv->pk_info->check_pair_func == NULL ) in mbedtls_pk_check_pair()
481 if( prv->pk_info->type == MBEDTLS_PK_RSA_ALT ) in mbedtls_pk_check_pair()
488 if( pub->pk_info != prv->pk_info ) in mbedtls_pk_check_pair()
492 return( prv->pk_info->check_pair_func( pub->pk_ctx, prv->pk_ctx ) ); in mbedtls_pk_check_pair()
A Dpk_wrap.c151 static int rsa_check_pair_wrap( const void *pub, const void *prv ) in rsa_check_pair_wrap() argument
154 (const mbedtls_rsa_context *) prv ) ); in rsa_check_pair_wrap()
379 static int eckey_check_pair( const void *pub, const void *prv ) in eckey_check_pair() argument
382 (const mbedtls_ecp_keypair *) prv ) ); in eckey_check_pair()
645 static int rsa_alt_check_pair( const void *pub, const void *prv ) in rsa_alt_check_pair() argument
652 if( rsa_alt_get_bitlen( prv ) != rsa_get_bitlen( pub ) ) in rsa_alt_check_pair()
657 if( ( ret = rsa_alt_sign_wrap( (void *) prv, MBEDTLS_MD_NONE, in rsa_alt_check_pair()
A Ddes.c873 unsigned char prv[8]; in mbedtls_des_self_test() local
966 memcpy( prv, des3_test_iv, 8 ); in mbedtls_des_self_test()
1020 memcpy( tmp, prv, 8 ); in mbedtls_des_self_test()
1021 memcpy( prv, buf, 8 ); in mbedtls_des_self_test()
1025 memcpy( buf, prv, 8 ); in mbedtls_des_self_test()
A Dmemory_buffer_alloc.c181 memory_header *prv = heap.first, *cur; in verify_chain() local
183 if( prv == NULL || verify_header( prv ) != 0 ) in verify_chain()
214 if( cur->prev != prv ) in verify_chain()
223 prv = cur; in verify_chain()
A Decp.c2815 int mbedtls_ecp_check_pub_priv( const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv )
2821 ECP_VALIDATE_RET( prv != NULL );
2824 pub->grp.id != prv->grp.id ||
2825 mbedtls_mpi_cmp_mpi( &pub->Q.X, &prv->Q.X ) ||
2826 mbedtls_mpi_cmp_mpi( &pub->Q.Y, &prv->Q.Y ) ||
2827 mbedtls_mpi_cmp_mpi( &pub->Q.Z, &prv->Q.Z ) )
2836 mbedtls_ecp_group_copy( &grp, &prv->grp );
2839 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &Q, &prv->d, &prv->grp.G, NULL, NULL ) );
2841 if( mbedtls_mpi_cmp_mpi( &Q.X, &prv->Q.X ) ||
2842 mbedtls_mpi_cmp_mpi( &Q.Y, &prv->Q.Y ) ||
[all …]
A Drsa.c695 const mbedtls_rsa_context *prv ) in mbedtls_rsa_check_pub_priv() argument
698 RSA_VALIDATE_RET( prv != NULL ); in mbedtls_rsa_check_pub_priv()
701 mbedtls_rsa_check_privkey( prv ) != 0 ) in mbedtls_rsa_check_pub_priv()
706 if( mbedtls_mpi_cmp_mpi( &pub->N, &prv->N ) != 0 || in mbedtls_rsa_check_pub_priv()
707 mbedtls_mpi_cmp_mpi( &pub->E, &prv->E ) != 0 ) in mbedtls_rsa_check_pub_priv()
A Daes.c1795 unsigned char prv[16]; in mbedtls_aes_self_test() local
1889 memset( prv, 0, 16 ); in mbedtls_aes_self_test()
1924 memcpy( tmp, prv, 16 ); in mbedtls_aes_self_test()
1925 memcpy( prv, buf, 16 ); in mbedtls_aes_self_test()
/AliOS-Things-master/components/mbedtls/platform/yoc/
A Drsa_alt.c238 int mbedtls_rsa_check_pub_priv(const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv) in mbedtls_rsa_check_pub_priv() argument
240 if (mbedtls_rsa_check_pubkey(pub) != 0 || mbedtls_rsa_check_privkey(prv) != 0) { in mbedtls_rsa_check_pub_priv()
244 if (mbedtls_mpi_cmp_mpi(&pub->N, &prv->N) != 0 || mbedtls_mpi_cmp_mpi(&pub->E, &prv->E) != 0) { in mbedtls_rsa_check_pub_priv()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dpk_internal.h90 int (*check_pair_func)( const void *pub, const void *prv );
A Dpk.h506 int mbedtls_pk_check_pair( const mbedtls_pk_context *pub, const mbedtls_pk_context *prv );
A Drsa.h512 const mbedtls_rsa_context *prv );
A Decp.h1108 const mbedtls_ecp_keypair *prv );
/AliOS-Things-master/components/mbedtls/platform/yoc/include/
A Drsa_alt.h117 int mbedtls_rsa_check_pub_priv(const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv);

Completed in 38 milliseconds