Lines Matching refs:blen
218 unsigned long blen, offset; in rsadorep() local
226 blen = _CFG_CORE_LTC_BIGNUM_MAX_BITS / sizeof(uint8_t); in rsadorep()
227 buf = mempool_alloc(mempool_default, blen); in rsadorep()
233 ltc_res = rsa_exptmod(src, src_len, buf, &blen, ltc_key->type, in rsadorep()
254 while ((offset < blen - 1) && (buf[offset] == 0)) in rsadorep()
257 if (*dst_len < blen - offset) { in rsadorep()
258 *dst_len = blen - offset; in rsadorep()
264 *dst_len = blen - offset; in rsadorep()
346 unsigned long blen; in sw_crypto_acipher_rsaes_decrypt() local
387 blen = mod_size - 11; in sw_crypto_acipher_rsaes_decrypt()
391 blen = src_len; in sw_crypto_acipher_rsaes_decrypt()
395 buf = mempool_alloc(mempool_default, blen); in sw_crypto_acipher_rsaes_decrypt()
401 ltc_res = rsa_decrypt_key_ex(src, src_len, buf, &blen, in sw_crypto_acipher_rsaes_decrypt()
428 if (*dst_len < blen) { in sw_crypto_acipher_rsaes_decrypt()
429 *dst_len = blen; in sw_crypto_acipher_rsaes_decrypt()
435 *dst_len = blen; in sw_crypto_acipher_rsaes_decrypt()
436 memcpy(dst, buf, blen); in sw_crypto_acipher_rsaes_decrypt()