diff options
author | Eric Biggers <ebiggers@google.com> | 2018-11-16 17:26:27 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-11-20 14:26:56 +0800 |
commit | ca8f162176ffccdf29e917197801f2aee27185df (patch) | |
tree | 1d705464f22f27ddc15c505a5d52a3907b72392d /crypto/aes_ti.c | |
parent | 338b1d34f1a5ca1f90d3c12015ab121e0f302c57 (diff) | |
download | linux-crypto-ca8f162176ffccdf29e917197801f2aee27185df.tar.gz linux-crypto-ca8f162176ffccdf29e917197801f2aee27185df.zip |
crypto: poly1305 - use structures for key and accumulator
In preparation for exposing a low-level Poly1305 API which implements
the ε-almost-∆-universal (εA∆U) hash function underlying the Poly1305
MAC and supports block-aligned inputs only, create structures
poly1305_key and poly1305_state which hold the limbs of the Poly1305
"r" key and accumulator, respectively.
These structures could actually have the same type (e.g. poly1305_val),
but different types are preferable, to prevent misuse.
Acked-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions