From: Cata Vasile Subject: ARM-CE aes encryption on uneven blocks Date: Mon, 24 Oct 2016 14:41:11 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: "linux-crypto@vger.kernel.org" Return-path: Received: from mail-db5eur01on0074.outbound.protection.outlook.com ([104.47.2.74]:33606 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754175AbcJYBQa (ORCPT ); Mon, 24 Oct 2016 21:16:30 -0400 Content-Language: en-US Sender: linux-crypto-owner@vger.kernel.org List-ID: Hi, I'm trying to understand the code for AES encryption from ARM-CE. >From the aes-glue.S calls I understand that the encryption primitives recei= ve the number of blocks, but have no way of determining the number of bytes= to encrypt, if for example the plaintext does not have a length of a multi= ple of AES block size. How does, for example, ecb_encrypt() also encrypt the last remaining bytes = in the plaintext if it is not a multiple of AES block size if It can never = deduce the full plaintext size? Catalin Vasile=