Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 117) sorted by relevance

12345

/optee_os/lib/libmbedtls/mbedtls/library/
A Dentropy_poll.c66 *olen = 0; in mbedtls_platform_entropy_poll()
81 *olen = len; in mbedtls_platform_entropy_poll()
176 *olen = ret; in mbedtls_platform_entropy_poll()
191 *olen = len; in mbedtls_platform_entropy_poll()
195 *olen = 0; in mbedtls_platform_entropy_poll()
209 *olen = len; in mbedtls_platform_entropy_poll()
224 *olen = 0; in mbedtls_null_entropy_poll()
240 *olen = 0; in mbedtls_hardclock_poll()
257 *olen = 0; in mbedtls_havege_poll()
262 *olen = len; in mbedtls_havege_poll()
[all …]
A Dcipher.c561 *olen = 0; in mbedtls_cipher_update()
573 *olen = ilen; in mbedtls_cipher_update()
587 *olen = ilen; in mbedtls_cipher_update()
596 *olen = ilen; in mbedtls_cipher_update()
707 *olen = ilen; in mbedtls_cipher_update()
722 *olen = ilen; in mbedtls_cipher_update()
738 *olen = ilen; in mbedtls_cipher_update()
759 *olen = ilen; in mbedtls_cipher_update()
774 *olen = ilen; in mbedtls_cipher_update()
974 *olen = 0; in mbedtls_cipher_finish()
[all …]
A Decdh.c297 size_t *olen, int point_format, in ecdh_make_params_internal() argument
343 *olen = grp_len + pt_len; in ecdh_make_params_internal()
354 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_params() argument
361 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_make_params()
520 size_t *olen, int point_format, in ecdh_make_public_internal() argument
560 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen, in mbedtls_ecdh_make_public() argument
567 ECDH_VALIDATE_RET( olen != NULL ); in mbedtls_ecdh_make_public()
683 *olen = ctx->grp.pbits / 8 + ( ( ctx->grp.pbits % 8 ) != 0 ); in ecdh_calc_secret_internal()
686 return mbedtls_mpi_write_binary_le( &ctx->z, buf, *olen ); in ecdh_calc_secret_internal()
688 return mbedtls_mpi_write_binary( &ctx->z, buf, *olen ); in ecdh_calc_secret_internal()
[all …]
A Dnist_kw.c188 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local
329 size_t olen; in unwrap() local
390 size_t i, olen; in mbedtls_nist_kw_unwrap() local
628 size_t olen; in mbedtls_nist_kw_self_test() local
650 if( ret != 0 || kw_out_len[i] != olen || in mbedtls_nist_kw_self_test()
671 out, olen, out, &olen, sizeof( out ) ); in mbedtls_nist_kw_self_test()
673 if( ret != 0 || olen != kw_msg_len[i] || in mbedtls_nist_kw_self_test()
689 olen = sizeof( out ); in mbedtls_nist_kw_self_test()
705 if( ret != 0 || kwp_out_len[i] != olen || in mbedtls_nist_kw_self_test()
726 olen, out, &olen, sizeof( out ) ); in mbedtls_nist_kw_self_test()
[all …]
A Dssl_cli.c100 *olen = 0; in ssl_write_hostname_ext()
168 *olen = 0; in ssl_write_renegotiation_ext()
219 *olen = 0; in ssl_write_signature_algorithms_ext()
315 *olen = 0; in ssl_write_supported_elliptic_curves_ext()
385 *olen = 0; in ssl_write_supported_point_formats_ext()
402 *olen = 6; in ssl_write_supported_point_formats_ext()
419 *olen = 0; in ssl_write_ecjpake_kkpp_ext()
500 *olen = 0; in ssl_write_cid_ext()
536 *olen = 0; in ssl_write_max_fragment_length_ext()
556 *olen = 5; in ssl_write_max_fragment_length_ext()
[all …]
A Dbase64.c164 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
173 *olen = 0; in mbedtls_base64_encode()
181 *olen = BASE64_SIZE_T_MAX; in mbedtls_base64_encode()
189 *olen = n + 1; in mbedtls_base64_encode()
233 *olen = p - dst; in mbedtls_base64_encode()
242 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
292 *olen = 0; in mbedtls_base64_decode()
305 *olen = n; in mbedtls_base64_decode()
328 *olen = p - dst; in mbedtls_base64_decode()
A Dssl_srv.c2287 *olen = 0; in ssl_write_truncated_hmac_ext()
2299 *olen = 4; in ssl_write_truncated_hmac_ext()
2312 *olen = 0; in ssl_write_cid_ext()
2363 *olen = 0; in ssl_write_encrypt_then_mac_ext()
2390 *olen = 4; in ssl_write_encrypt_then_mac_ext()
2417 *olen = 4; in ssl_write_extended_ms_ext()
2442 *olen = 4; in ssl_write_session_ticket_ext()
2509 *olen = 5; in ssl_write_max_fragment_length_ext()
2540 *olen = 6; in ssl_write_supported_point_formats_ext()
2554 *olen = 0; in ssl_write_ecjpake_kkpp_ext()
[all …]
A Dentropy.c265 size_t olen; in entropy_gather_internal() local
278 olen = 0; in entropy_gather_internal()
280 buf, MBEDTLS_ENTROPY_MAX_GATHER, &olen ) ) != 0 ) in entropy_gather_internal()
288 if( olen > 0 ) in entropy_gather_internal()
291 buf, olen ) ) != 0 ) in entropy_gather_internal()
293 ctx->source[i].size += olen; in entropy_gather_internal()
546 size_t len, size_t *olen ) in entropy_dummy_source() argument
551 *olen = len; in entropy_dummy_source()
563 size_t olen = 0; in mbedtls_entropy_source_self_test_gather() local
569 buf_len - entropy_len, &olen ) ) != 0 ) in mbedtls_entropy_source_self_test_gather()
[all …]
A Drsa.c736 size_t olen; in mbedtls_rsa_public() local
760 olen = ctx->len; in mbedtls_rsa_public()
874 size_t olen; in mbedtls_rsa_private() local
1056 olen = ctx->len; in mbedtls_rsa_private()
1165 size_t olen; in mbedtls_rsa_rsaes_oaep_encrypt() local
1189 olen = ctx->len; in mbedtls_rsa_rsaes_oaep_encrypt()
1252 size_t nb_pad, olen; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() local
1265 olen = ctx->len; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1489 if( *olen != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt()
1814 size_t olen; in rsa_rsassa_pss_sign() local
[all …]
A Ddhm.c209 unsigned char *output, size_t *olen, in mbedtls_dhm_make_params() argument
218 DHM_VALIDATE_RET( olen != NULL ); in mbedtls_dhm_make_params()
248 *olen = p - output; in mbedtls_dhm_make_params()
303 unsigned char *output, size_t olen, in mbedtls_dhm_make_public() argument
312 if( olen < 1 || olen > ctx->len ) in mbedtls_dhm_make_public()
321 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->GX, output, olen ) ); in mbedtls_dhm_make_public()
401 unsigned char *output, size_t output_size, size_t *olen, in mbedtls_dhm_calc_secret() argument
409 DHM_VALIDATE_RET( olen != NULL ); in mbedtls_dhm_calc_secret()
442 *olen = mbedtls_mpi_size( &ctx->K ); in mbedtls_dhm_calc_secret()
443 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &ctx->K, output, *olen ) ); in mbedtls_dhm_calc_secret()
/optee_os/core/lib/libtomcrypt/src/mac/blake2/
A Dblake2bmac_test.c288 unsigned long olen = mlen; in blake2bmac_test()
291 blake2bmac_init(&st, olen, key, klen); in blake2bmac_test()
298 blake2bmac_done(&st, out, &olen); in blake2bmac_test()
299 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC multi", ilen) != 0) return CRYPT_FAIL_TE… in blake2bmac_test()
302 blake2bmac_init(&st, olen, key, klen); in blake2bmac_test()
304 blake2bmac_done(&st, out, &olen); in blake2bmac_test()
305 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2B MAC single", ilen) != 0) return CRYPT_FAIL_T… in blake2bmac_test()
A Dblake2smac_test.c288 unsigned long olen = mlen; in blake2smac_test()
291 blake2smac_init(&st, olen, key, klen); in blake2smac_test()
298 blake2smac_done(&st, out, &olen); in blake2smac_test()
299 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC multi", ilen) != 0) return CRYPT_FAIL_TE… in blake2smac_test()
302 blake2smac_init(&st, olen, key, klen); in blake2smac_test()
304 blake2smac_done(&st, out, &olen); in blake2smac_test()
305 …if (compare_testvector(out, olen, mac, mlen, "BLAKE2S MAC single", ilen) != 0) return CRYPT_FAIL_T… in blake2smac_test()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dentropy_poll.h52 unsigned char *output, size_t len, size_t *olen );
60 unsigned char *output, size_t len, size_t *olen );
70 unsigned char *output, size_t len, size_t *olen );
78 unsigned char *output, size_t len, size_t *olen );
91 unsigned char *output, size_t len, size_t *olen );
101 unsigned char *output, size_t len, size_t *olen );
A Dcipher.h327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
782 size_t *olen );
807 unsigned char *output, size_t *olen );
882 unsigned char *output, size_t *olen );
941 unsigned char *output, size_t *olen,
1000 unsigned char *output, size_t *olen,
1057 size_t *olen, size_t tag_len );
1113 size_t *olen, size_t tag_len );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dentropy_poll.h52 unsigned char *output, size_t len, size_t *olen );
60 unsigned char *output, size_t len, size_t *olen );
70 unsigned char *output, size_t len, size_t *olen );
78 unsigned char *output, size_t len, size_t *olen );
91 unsigned char *output, size_t len, size_t *olen );
101 unsigned char *output, size_t len, size_t *olen );
A Dcipher.h327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
782 size_t *olen );
807 unsigned char *output, size_t *olen );
882 unsigned char *output, size_t *olen );
941 unsigned char *output, size_t *olen,
1000 unsigned char *output, size_t *olen,
1057 size_t *olen, size_t tag_len );
1113 size_t *olen, size_t tag_len );
A Decjpake.h164 unsigned char *buf, size_t len, size_t *olen,
205 unsigned char *buf, size_t len, size_t *olen,
245 unsigned char *buf, size_t len, size_t *olen,
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dentropy_poll.h52 unsigned char *output, size_t len, size_t *olen );
60 unsigned char *output, size_t len, size_t *olen );
70 unsigned char *output, size_t len, size_t *olen );
78 unsigned char *output, size_t len, size_t *olen );
91 unsigned char *output, size_t len, size_t *olen );
101 unsigned char *output, size_t len, size_t *olen );
A Dcipher.h327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
782 size_t *olen );
807 unsigned char *output, size_t *olen );
882 unsigned char *output, size_t *olen );
941 unsigned char *output, size_t *olen,
1000 unsigned char *output, size_t *olen,
1057 size_t *olen, size_t tag_len );
1113 size_t *olen, size_t tag_len );
A Decjpake.h164 unsigned char *buf, size_t len, size_t *olen,
205 unsigned char *buf, size_t len, size_t *olen,
245 unsigned char *buf, size_t len, size_t *olen,
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dentropy_poll.h52 unsigned char *output, size_t len, size_t *olen );
60 unsigned char *output, size_t len, size_t *olen );
70 unsigned char *output, size_t len, size_t *olen );
78 unsigned char *output, size_t len, size_t *olen );
91 unsigned char *output, size_t len, size_t *olen );
101 unsigned char *output, size_t len, size_t *olen );
A Dcipher.h327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
782 size_t *olen );
807 unsigned char *output, size_t *olen );
882 unsigned char *output, size_t *olen );
941 unsigned char *output, size_t *olen,
1000 unsigned char *output, size_t *olen,
1057 size_t *olen, size_t tag_len );
1113 size_t *olen, size_t tag_len );
A Decjpake.h164 unsigned char *buf, size_t len, size_t *olen,
205 unsigned char *buf, size_t len, size_t *olen,
245 unsigned char *buf, size_t len, size_t *olen,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dentropy_poll.h52 unsigned char *output, size_t len, size_t *olen );
60 unsigned char *output, size_t len, size_t *olen );
70 unsigned char *output, size_t len, size_t *olen );
78 unsigned char *output, size_t len, size_t *olen );
91 unsigned char *output, size_t len, size_t *olen );
101 unsigned char *output, size_t len, size_t *olen );
A Dcipher.h327 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
782 size_t *olen );
807 unsigned char *output, size_t *olen );
882 unsigned char *output, size_t *olen );
941 unsigned char *output, size_t *olen,
1000 unsigned char *output, size_t *olen,
1057 size_t *olen, size_t tag_len );
1113 size_t *olen, size_t tag_len );

Completed in 55 milliseconds

12345