Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/wpa_supplicant/src/utils/
Dbase64.c26 size_t olen; in base64_gen_encode() local
31 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_gen_encode()
33 olen += olen / 72; /* line feeds */ in base64_gen_encode()
34 olen++; /* nul termination */ in base64_gen_encode()
35 if (olen < len) in base64_gen_encode()
37 out = os_malloc(olen); in base64_gen_encode()
88 size_t i, count, olen; in base64_gen_decode() local
107 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode()
108 pos = out = os_malloc(olen); in base64_gen_decode()
/hal_espressif-3.6.0/components/esp-tls/esp-tls-crypto/
Desp_tls_crypto.c36 size_t *olen, const unsigned char *src, in esp_crypto_bas64_encode_mbedtls() argument
39 return mbedtls_base64_encode(dst, dlen, olen, src, slen); in esp_crypto_bas64_encode_mbedtls()
55 static int esp_crypto_base64_encode_woflSSL(unsigned char *dst, size_t dlen, size_t *olen, in esp_crypto_base64_encode_woflSSL() argument
58 *olen = dlen; in esp_crypto_base64_encode_woflSSL()
59 return Base64_Encode_NoNl((const byte *) src, (word32) slen, (byte *) dst, (word32 *) olen); in esp_crypto_base64_encode_woflSSL()
73 int esp_crypto_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, in esp_crypto_base64_encode() argument
76 return _esp_crypto_base64_encode(dst, dlen, olen, src, slen); in esp_crypto_base64_encode()
Desp_tls_crypto.h54 size_t *olen, const unsigned char *src,
/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/
Dcrypto_mbedtls.c498 size_t olen = 1200;
500 ret = mbedtls_cipher_update(&ctx->ctx_enc, plain, len, crypt, &olen);
505 ret = mbedtls_cipher_finish(&ctx->ctx_enc, crypt + olen, &olen);
517 size_t olen = 1200;
519 ret = mbedtls_cipher_update(&ctx->ctx_dec, crypt, len, plain, &olen);
524 ret = mbedtls_cipher_finish(&ctx->ctx_dec, plain + olen, &olen);
571 size_t olen; in aes_wrap() local
582 n * 8, cipher, &olen, (n + 1) * 8); in aes_wrap()
592 size_t olen; in aes_unwrap() local
603 (n + 1) * 8, plain, &olen, (n * 8)); in aes_unwrap()
/hal_espressif-3.6.0/components/mbedtls/port/
Desp_hardware.c19 unsigned char *output, size_t len, size_t *olen ) in mbedtls_hardware_poll() argument
22 *olen = len; in mbedtls_hardware_poll()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Dccm_mode.c137 int tc_ccm_generation_encryption(uint8_t *out, unsigned int olen, in tc_ccm_generation_encryption() argument
150 (olen < (plen + c->mlen))) { /* invalid output buffer size */ in tc_ccm_generation_encryption()
198 int tc_ccm_decryption_verification(uint8_t *out, unsigned int olen, in tc_ccm_decryption_verification() argument
211 (olen < plen - c->mlen)) { /* invalid output buffer size */ in tc_ccm_decryption_verification()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/
Dccm_mode.h156 int tc_ccm_generation_encryption(uint8_t *out, unsigned int olen,
202 int tc_ccm_decryption_verification(uint8_t *out, unsigned int olen,
/hal_espressif-3.6.0/examples/peripherals/secure_element/atecc608_ecdsa/main/
Decdsa_example_main.c115 size_t olen = 0; in atca_ecdsa_test() local
149 ret = mbedtls_pk_sign(&pkey, MBEDTLS_MD_SHA256, hash, 0, buf, &olen, in atca_ecdsa_test()
159 buf, olen); in atca_ecdsa_test()
/hal_espressif-3.6.0/components/wpa_supplicant/src/tls/
Dtlsv1_server.c240 size_t olen; in tlsv1_server_decrypt() local
249 olen = out_end - out_pos; in tlsv1_server_decrypt()
251 out_pos, &olen, &alert); in tlsv1_server_decrypt()
267 if (olen < 2) { in tlsv1_server_decrypt()
295 out_pos += olen; in tlsv1_server_decrypt()
Dtlsv1_client.c313 size_t olen; in tlsv1_client_decrypt() local
341 olen = wpabuf_tailroom(buf); in tlsv1_client_decrypt()
343 out_pos, &olen, &alert); in tlsv1_client_decrypt()
368 if (olen < 2) { in tlsv1_client_decrypt()
394 wpabuf_put(buf, olen); in tlsv1_client_decrypt()
/hal_espressif-3.6.0/components/mbedtls/test/
Dtest_rsa.c397 size_t olen; in myrand() local
398 return mbedtls_hardware_poll(rng_state, output, len, &olen); in myrand()
/hal_espressif-3.6.0/components/wpa_supplicant/src/eap_peer/
Deap_fast.c1388 size_t tlv_len, olen; in eap_fast_use_pac_opaque() local
1391 olen = pac->pac_opaque_len; in eap_fast_use_pac_opaque()
1392 tlv_len = sizeof(*ehdr) + olen; in eap_fast_use_pac_opaque()
1397 ehdr->length = host_to_be16(olen); in eap_fast_use_pac_opaque()
1398 os_memcpy(ehdr + 1, pac->pac_opaque, olen); in eap_fast_use_pac_opaque()