by NickM · 4y ago · 0 comments
This unlocks all kinds of clever techniques. For example, it lets you efficiently compute a "rolling" hash of every n-byte substring of a document, by simply sliding an n-byte window across the document one byte at a time, multiplying the previous hash by the incoming byte and dividing by the outgoing byte. This has lots of applications in cryptography, compression, searching, and so on.
1) Multiplication behaves as expected (without reference to addition)
2) Addition behaves as expected (without reference to multiplication)
3) a(b+c) = ab + bc
The third requirement is the only part of fields that links multiplication to addition. In particular, if we assume that 2=1+1, then we have: 2a = (1+1)a = a(1+1) = a+a
How about - Addition is move and multiplication is also a move. a + b move from 0 a step then b steps. a * b is move a step b times.
Is that count?
If a and b are in the range 0-255, am I right in thinking that (((a + 1) * (b + 1)) % 257) - 1 is also in the range 0-255? Does that also work as a group operation? Does division done this way have the properties you'd need?
"In the beginning, zero was created. This has made a lot of people very angry and been widely regarded as a bad move..."
Another application is crypto: the SubBytes step of AES maps very neatly onto gf2p8affineinvqb, so algorithms that are similar to AES but not exactly AES could make use of gf2p8affineinvqb
This means that AES-GCM can take advantage of data parallelism and there are big speedups in threaded and pipelined CPUs.
In short, you can get big latency and throughout gains by using AES-GCM over AES-CBC.
The SM4 cipher, for example: https://en.wikipedia.org/wiki/SM4_%28cipher%29
A fantastic reference is [1]
[1] Fast Algorithms for Digital Signal Processing. https://www.google.com/books/edition/Fast_Algorithms_for_Dig...