Lines Matching refs:olen
742 size_t olen; in mbedtls_rsa_public() local
766 olen = ctx->len; in mbedtls_rsa_public()
768 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &T, output, olen ) ); in mbedtls_rsa_public()
880 size_t olen; in mbedtls_rsa_private() local
1056 olen = ctx->len; in mbedtls_rsa_private()
1057 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &T, output, olen ) ); in mbedtls_rsa_private()
1161 size_t olen; in mbedtls_rsa_rsaes_oaep_encrypt() local
1180 olen = ctx->len; in mbedtls_rsa_rsaes_oaep_encrypt()
1184 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1187 memset( output, 0, olen ); in mbedtls_rsa_rsaes_oaep_encrypt()
1201 p += olen - 2 * hlen - 2 - ilen; in mbedtls_rsa_rsaes_oaep_encrypt()
1211 if( ( ret = mgf_mask( output + hlen + 1, olen - hlen - 1, output + 1, hlen, in mbedtls_rsa_rsaes_oaep_encrypt()
1216 if( ( ret = mgf_mask( output + 1, hlen, output + hlen + 1, olen - hlen - 1, in mbedtls_rsa_rsaes_oaep_encrypt()
1240 size_t nb_pad, olen; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() local
1248 olen = ctx->len; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1251 if( ilen + 11 < ilen || olen < ilen + 11 ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1254 nb_pad = olen - 3 - ilen; in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1327 size_t *olen, in mbedtls_rsa_rsaes_oaep_decrypt() argument
1345 RSA_VALIDATE_RET( olen != NULL ); in mbedtls_rsa_rsaes_oaep_decrypt()
1448 *olen = ilen - (p - buf); in mbedtls_rsa_rsaes_oaep_decrypt()
1449 if( *olen != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt()
1450 memcpy( output, p, *olen ); in mbedtls_rsa_rsaes_oaep_decrypt()
1468 size_t *olen, in mbedtls_rsa_rsaes_pkcs1_v15_decrypt() argument
1480 RSA_VALIDATE_RET( olen != NULL ); in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
1496 output, output_max_len, olen ); in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
1511 size_t *olen, in mbedtls_rsa_pkcs1_decrypt() argument
1519 RSA_VALIDATE_RET( olen != NULL ); in mbedtls_rsa_pkcs1_decrypt()
1525 return mbedtls_rsa_rsaes_pkcs1_v15_decrypt( ctx, f_rng, p_rng, olen, in mbedtls_rsa_pkcs1_decrypt()
1532 olen, input, output, in mbedtls_rsa_pkcs1_decrypt()
1551 size_t olen; in rsa_rsassa_pss_sign() local
1571 olen = ctx->len; in rsa_rsassa_pss_sign()
1600 if( olen < hlen + min_slen + 2 ) in rsa_rsassa_pss_sign()
1602 else if( olen >= hlen + hlen + 2 ) in rsa_rsassa_pss_sign()
1605 slen = olen - hlen - 2; in rsa_rsassa_pss_sign()
1607 else if ( (saltlen < 0) || (saltlen + hlen + 2 > olen) ) in rsa_rsassa_pss_sign()
1616 memset( sig, 0, olen ); in rsa_rsassa_pss_sign()
1620 p += olen - hlen - slen - 2; in rsa_rsassa_pss_sign()
1651 if( ( ret = mgf_mask( sig + offset, olen - hlen - 1 - offset, p, hlen, in rsa_rsassa_pss_sign()
1656 sig[0] &= 0xFF >> ( olen * 8 - msb ); in rsa_rsassa_pss_sign()