/mbedtls-development/library/ |
A D | rsa_alt_helpers.c | 140 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &K, &K, &T, N, in mbedtls_rsa_deduce_primes() 151 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( &K, &K, 1 ) ); in mbedtls_rsa_deduce_primes() 167 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &K, &K, &K ) ); in mbedtls_rsa_deduce_primes() 226 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &K, &K, &L ) ); in mbedtls_rsa_deduce_private_exponent() 227 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( &K, NULL, &K, D ) ); in mbedtls_rsa_deduce_private_exponent() 363 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( &K, &K, 1 ) ); in mbedtls_rsa_validate_params() 365 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &K, &K, &L ) ); in mbedtls_rsa_validate_params() 374 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( &K, &K, 1 ) ); in mbedtls_rsa_validate_params() 376 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &K, &K, &L ) ); in mbedtls_rsa_validate_params() 461 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( &K, &K, 1 ) ); in mbedtls_rsa_validate_crt() [all …]
|
A D | sha256.c | 126 static const uint32_t K[] = variable 164 #define P(a,b,c,d,e,f,g,h,x,K) \ argument 198 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); in mbedtls_internal_sha256_process() 233 local.A[5], local.A[6], local.A[7], R(i+0), K[i+0] ); in mbedtls_internal_sha256_process() 235 local.A[4], local.A[5], local.A[6], R(i+1), K[i+1] ); in mbedtls_internal_sha256_process() 237 local.A[3], local.A[4], local.A[5], R(i+2), K[i+2] ); in mbedtls_internal_sha256_process() 239 local.A[2], local.A[3], local.A[4], R(i+3), K[i+3] ); in mbedtls_internal_sha256_process() 241 local.A[1], local.A[2], local.A[3], R(i+4), K[i+4] ); in mbedtls_internal_sha256_process() 243 local.A[0], local.A[1], local.A[2], R(i+5), K[i+5] ); in mbedtls_internal_sha256_process() 245 local.A[7], local.A[0], local.A[1], R(i+6), K[i+6] ); in mbedtls_internal_sha256_process() [all …]
|
A D | sha512.c | 148 static const uint64_t K[80] = variable 217 #define P(a,b,c,d,e,f,g,h,x,K) \ in mbedtls_internal_sha512_process() argument 220 local.temp1 = (h) + S3(e) + F1((e),(f),(g)) + (K) + (x); \ in mbedtls_internal_sha512_process() 242 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); in mbedtls_internal_sha512_process() 266 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() 268 local.A[4], local.A[5], local.A[6], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() 270 local.A[3], local.A[4], local.A[5], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() 272 local.A[2], local.A[3], local.A[4], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() 274 local.A[1], local.A[2], local.A[3], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() 276 local.A[0], local.A[1], local.A[2], local.W[i], K[i] ); i++; in mbedtls_internal_sha512_process() [all …]
|
A D | dhm.c | 160 src = &ctx->K; in mbedtls_dhm_get_value() 464 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->K, &GYb, &ctx->X, in mbedtls_dhm_calc_secret() 468 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->K, &ctx->K, &ctx->Vf ) ); in mbedtls_dhm_calc_secret() 469 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->K, &ctx->K, &ctx->P ) ); in mbedtls_dhm_calc_secret() 473 *olen = mbedtls_mpi_size( &ctx->K ); in mbedtls_dhm_calc_secret() 474 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->K, output, *olen ) ); in mbedtls_dhm_calc_secret() 497 mbedtls_mpi_free( &ctx->K ); in mbedtls_dhm_free()
|
A D | ripemd160.c | 137 P( (a), (b), (c), (d), (e), (r), (s), F, K ); \ in mbedtls_internal_ripemd160_process() 143 #define K 0x00000000 in mbedtls_internal_ripemd160_process() macro 163 #undef K in mbedtls_internal_ripemd160_process() 168 #define K 0x5A827999 in mbedtls_internal_ripemd160_process() macro 188 #undef K in mbedtls_internal_ripemd160_process() 193 #define K 0x6ED9EBA1 in mbedtls_internal_ripemd160_process() macro 213 #undef K in mbedtls_internal_ripemd160_process() 218 #define K 0x8F1BBCDC in mbedtls_internal_ripemd160_process() macro 238 #undef K in mbedtls_internal_ripemd160_process() 243 #define K 0xA953FD4E in mbedtls_internal_ripemd160_process() macro [all …]
|
A D | hmac_drbg.c | 69 unsigned char K[MBEDTLS_MD_MAX_SIZE]; in mbedtls_hmac_drbg_update() local 89 if( ( ret = mbedtls_md_hmac_finish( &ctx->md_ctx, K ) ) != 0 ) in mbedtls_hmac_drbg_update() 93 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, K, md_len ) ) != 0 ) in mbedtls_hmac_drbg_update() 103 mbedtls_platform_zeroize( K, sizeof( K ) ); in mbedtls_hmac_drbg_update()
|
A D | sha1.c | 137 (e) += S((a),5) + F((b),(c),(d)) + K + (x); \ in mbedtls_internal_sha1_process() 148 #define K 0x5A827999 in mbedtls_internal_sha1_process() macro 171 #undef K in mbedtls_internal_sha1_process() 175 #define K 0x6ED9EBA1 in mbedtls_internal_sha1_process() macro 198 #undef K in mbedtls_internal_sha1_process() 202 #define K 0x8F1BBCDC in mbedtls_internal_sha1_process() macro 225 #undef K in mbedtls_internal_sha1_process() 229 #define K 0xCA62C1D6 in mbedtls_internal_sha1_process() macro 252 #undef K in mbedtls_internal_sha1_process()
|
A D | ecjpake.c | 758 mbedtls_ecp_point K; in mbedtls_ecjpake_derive_secret() local 772 mbedtls_ecp_point_init( &K ); in mbedtls_ecjpake_derive_secret() 785 MBEDTLS_MPI_CHK( mbedtls_ecp_muladd( &ctx->grp, &K, in mbedtls_ecjpake_derive_secret() 788 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &ctx->grp, &K, &ctx->xm2, &K, in mbedtls_ecjpake_derive_secret() 793 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &K.X, kx, x_bytes ) ); in mbedtls_ecjpake_derive_secret() 797 mbedtls_ecp_point_free( &K ); in mbedtls_ecjpake_derive_secret()
|
A D | rsa.c | 2593 mbedtls_mpi K; in mbedtls_rsa_self_test() local 2595 mbedtls_mpi_init( &K ); in mbedtls_rsa_self_test() 2598 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &K, 16, RSA_N ) ); in mbedtls_rsa_self_test() 2599 MBEDTLS_MPI_CHK( mbedtls_rsa_import( &rsa, &K, NULL, NULL, NULL, NULL ) ); in mbedtls_rsa_self_test() 2600 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &K, 16, RSA_P ) ); in mbedtls_rsa_self_test() 2601 MBEDTLS_MPI_CHK( mbedtls_rsa_import( &rsa, NULL, &K, NULL, NULL, NULL ) ); in mbedtls_rsa_self_test() 2602 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &K, 16, RSA_Q ) ); in mbedtls_rsa_self_test() 2603 MBEDTLS_MPI_CHK( mbedtls_rsa_import( &rsa, NULL, NULL, &K, NULL, NULL ) ); in mbedtls_rsa_self_test() 2604 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &K, 16, RSA_D ) ); in mbedtls_rsa_self_test() 2606 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &K, 16, RSA_E ) ); in mbedtls_rsa_self_test() [all …]
|
A D | ssl_cli.c | 3518 MBEDTLS_SSL_DEBUG_MPI( 3, "DHM: K ", &ssl->handshake->dhm_ctx.K ); in ssl_write_client_key_exchange()
|
A D | ssl_srv.c | 3754 MBEDTLS_SSL_DEBUG_MPI( 3, "DHM: K ", &ssl->handshake->dhm_ctx.K ); in ssl_parse_client_key_exchange()
|
A D | ssl_tls.c | 1505 MBEDTLS_SSL_DEBUG_MPI( 3, "DHM: K ", &ssl->handshake->dhm_ctx.K ); in mbedtls_ssl_psk_derive_premaster()
|
/mbedtls-development/tests/data_files/ |
A D | rsa_pkcs8_pbes2_pbkdf2_2048_3des.pem | 14 aaiIGd/a2YxB5yW0oAIBBFnm5koTWeKW/K+LDWOE67S2qSxIfr1goFxIDbe1Y2Mv 27 u5n0Ocu6UrKxLdlpv9hLHTMbvUZMiLOef7IK+K+Bxc5dXttPe7rtBNhzJp00by8q
|
A D | server7-expired.crt | 21 yueZsAAEb//A6EU008WmG/K+EY230JxEUzGNf2l1j1H94HcP9OwjY4bn2PJdVzcb
|
A D | rsa_pkcs1_4096_aes128.pem | 43 Daq5gnCBeTwNwiSkoM5WjjlGGl3K1ubm8t1dEbjgL0tUHEv/A+cD94SkqwdPiL+K
|
A D | rsa_pkcs1_4096_3des.pem | 19 4zMFpLuhxLAI6IJlqjM8TQhRmP79oGxolF/rNyOR+3K+HFjEFaBW/Cm6WZVKYV6N
|
/mbedtls-development/include/mbedtls/ |
A D | dhm.h | 121 mbedtls_mpi MBEDTLS_PRIVATE(K); /*!< The shared secret = \c G^(XY) mod \c P. */
|
/mbedtls-development/tests/suites/ |
A D | test_suite_dhm.function | 168 TEST_ASSERT( check_get_value( &ctx_cli, MBEDTLS_DHM_PARAM_K, &ctx_srv.K ) ); 171 TEST_ASSERT( check_get_value( &ctx_srv, MBEDTLS_DHM_PARAM_K, &ctx_cli.K ) );
|
A D | test_suite_psa_crypto.data | 2398 PSA symmetric encrypt validation: ChaCha20, K=0 N=0 2402 PSA symmetric encrypt validation: ChaCha20, K=rand N=rand 2406 PSA symmetric encrypt multipart: ChaCha20, K=0 N=0 2410 PSA symmetric encrypt multipart: ChaCha20, K=rand N=rand 2418 PSA symmetric decrypt multipart: ChaCha20, K=rand N=rand
|
A D | test_suite_psa_crypto.function | 722 memset( buffer, 'K', byte_size ); 743 TEST_EQUAL( buffer[n], 'K' );
|
/mbedtls-development/docs/architecture/ |
A D | alternative-implementations.md | 50 …_DEBUG_C` is enabled, `mbedtls_dhm_context` must have the fields `P`, `Q`, `G`, `GX`, `GY` and `K`.
|
/mbedtls-development/ |
A D | ChangeLog | 3363 * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan). 3365 interpret semicolons as comment delimiters (found by Barry K. Nathan). 3410 (found by Barry K. Nathan) 3839 * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan). 3841 interpret semicolons as comment delimiters (found by Barry K. Nathan).
|