Lines Matching refs:use_len
82 size_t use_len; in pem_pbkdf1() local
121 use_len = 16; in pem_pbkdf1()
123 use_len = keylen - 16; in pem_pbkdf1()
125 memcpy( key + 16, md5sum, use_len ); in pem_pbkdf1()
227 size_t pwdlen, size_t *use_len ) in mbedtls_pem_read_buffer() argument
267 *use_len = end - data; in mbedtls_pem_read_buffer()
439 size_t len = 0, use_len, add_len = 0; in mbedtls_pem_write_buffer() local
441 mbedtls_base64_encode( NULL, 0, &use_len, der_data, der_len ); in mbedtls_pem_write_buffer()
442 add_len = strlen( header ) + strlen( footer ) + ( use_len / 64 ) + 1; in mbedtls_pem_write_buffer()
444 if( use_len + add_len > buf_len ) in mbedtls_pem_write_buffer()
446 *olen = use_len + add_len; in mbedtls_pem_write_buffer()
450 if( use_len != 0 && in mbedtls_pem_write_buffer()
451 ( ( encode_buf = mbedtls_calloc( 1, use_len ) ) == NULL ) ) in mbedtls_pem_write_buffer()
454 if( ( ret = mbedtls_base64_encode( encode_buf, use_len, &use_len, der_data, in mbedtls_pem_write_buffer()
465 while( use_len ) in mbedtls_pem_write_buffer()
467 len = ( use_len > 64 ) ? 64 : use_len; in mbedtls_pem_write_buffer()
469 use_len -= len; in mbedtls_pem_write_buffer()