Lines Matching refs:blocklen
204 size_t blocklen = EVP_CIPHER_CTX_get_block_size(ctx); in kek_unwrap_key() local
208 if (blocklen == 0) in kek_unwrap_key()
211 if (inlen < 2 * blocklen) { in kek_unwrap_key()
215 if (inlen % blocklen) { in kek_unwrap_key()
222 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key()
223 in + inlen - 2 * blocklen, blocklen * 2) in kek_unwrap_key()
230 tmp + inlen - blocklen, blocklen) in kek_unwrap_key()
232 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key()
261 size_t blocklen = EVP_CIPHER_CTX_get_block_size(ctx); in kek_wrap_key() local
265 if (blocklen == 0) in kek_wrap_key()
272 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key()
273 olen *= blocklen; in kek_wrap_key()
274 if (olen < 2 * blocklen) { in kek_wrap_key()