by mmozeiko · 1mo ago · 0 comments
It is worth mentioning that in modern AES usage this feature does not really matter, because block cipher is used in CTR mode. In CTR block cipher is used to create long keystream bytes (pretty much one-time-pad key). This keystream gets xor'ed with plaintext to get ciphertext. Then getting from ciphertext back to plaintext is exactly the same xor operation with same keystream, no inverse AES operations needed.
The current dominant AES-GCM mode of operation is the consequence of the broken US IP laws and its supremacy is not determined by technical reasons.
That said, for Internet communication AES-GCM is sufficiently close to the optimum that there is no need to replace it (by sufficiently close I mean that its speed is only very slightly slower and the probability of not detecting forgeries is only very slightly higher).
However, the better modes of operation require the inverse of the block cipher function.
Nonetheless, if one wants an even better security and the block size is extended to 256 bits, due to another historical accident, the definition of the Intel and ARM AES instructions is such that for extended block sizes the decryption would be slower than encryption (the reason is that the decryption instructions are not the inverses of the encryption instructions, as they should have been).
This misfeature can be avoided by not using the decryption instructions, which is possible if the block size is not extended as in the original AES definition, but by using a Feistel structure where the 128-bit AES instructions modify alternatively the 2 halves of a block.
So it is possible to implement both the direct and the inverse form of a 256-bit block cipher function, with equal throughputs, by using only the encryption AES instructions. Such a 256-bit block cipher function can be used in any mode of operation, including in those that require its inverse.
Encryption is also used for other purposes, e.g. communication between private devices or data storage, for which other modes of operation have significant advantages.
Such as?
Encrypting UUIDs in a database?
ISO 9564-1 PIN encryption?