Lines Matching refs:blen
210 unsigned long blen, offset; in rsadorep() local
218 blen = _CFG_CORE_LTC_BIGNUM_MAX_BITS / sizeof(uint8_t); in rsadorep()
219 buf = mempool_alloc(mempool_default, blen); in rsadorep()
225 ltc_res = rsa_exptmod(src, src_len, buf, &blen, ltc_key->type, in rsadorep()
246 while ((offset < blen - 1) && (buf[offset] == 0)) in rsadorep()
249 if (*dst_len < blen - offset) { in rsadorep()
250 *dst_len = blen - offset; in rsadorep()
256 *dst_len = blen - offset; in rsadorep()
334 unsigned long blen; in sw_crypto_acipher_rsaes_decrypt() local
365 blen = mod_size - 11; in sw_crypto_acipher_rsaes_decrypt()
369 blen = src_len; in sw_crypto_acipher_rsaes_decrypt()
373 buf = mempool_alloc(mempool_default, blen); in sw_crypto_acipher_rsaes_decrypt()
379 ltc_res = rsa_decrypt_key_ex(src, src_len, buf, &blen, in sw_crypto_acipher_rsaes_decrypt()
406 if (*dst_len < blen) { in sw_crypto_acipher_rsaes_decrypt()
407 *dst_len = blen; in sw_crypto_acipher_rsaes_decrypt()
413 *dst_len = blen; in sw_crypto_acipher_rsaes_decrypt()
414 memcpy(dst, buf, blen); in sw_crypto_acipher_rsaes_decrypt()