diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-02-14 16:43:30 -0500 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-03-09 05:34:16 -0500 |
| commit | 3ea996ddfb1756658523f371c7ed1137841facaa (patch) | |
| tree | faf6f37adc7f53a7c784cac02eb24aa12a4dcf11 /include/crypto | |
| parent | f33fd64778f2593b3b377cef47b8604462d56a57 (diff) | |
crypto: gf128mul - constify 4k and 64k multiplication tables
Constify the multiplication tables passed to the 4k and 64k
multiplication functions, as they are not modified by these functions.
Cc: Alex Cope <alexcope@google.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
| -rw-r--r-- | include/crypto/gf128mul.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/crypto/gf128mul.h b/include/crypto/gf128mul.h index 9662c4538873..0bc9b5f1c45e 100644 --- a/include/crypto/gf128mul.h +++ b/include/crypto/gf128mul.h | |||
| @@ -174,8 +174,8 @@ struct gf128mul_4k { | |||
| 174 | 174 | ||
| 175 | struct gf128mul_4k *gf128mul_init_4k_lle(const be128 *g); | 175 | struct gf128mul_4k *gf128mul_init_4k_lle(const be128 *g); |
| 176 | struct gf128mul_4k *gf128mul_init_4k_bbe(const be128 *g); | 176 | struct gf128mul_4k *gf128mul_init_4k_bbe(const be128 *g); |
| 177 | void gf128mul_4k_lle(be128 *a, struct gf128mul_4k *t); | 177 | void gf128mul_4k_lle(be128 *a, const struct gf128mul_4k *t); |
| 178 | void gf128mul_4k_bbe(be128 *a, struct gf128mul_4k *t); | 178 | void gf128mul_4k_bbe(be128 *a, const struct gf128mul_4k *t); |
| 179 | 179 | ||
| 180 | static inline void gf128mul_free_4k(struct gf128mul_4k *t) | 180 | static inline void gf128mul_free_4k(struct gf128mul_4k *t) |
| 181 | { | 181 | { |
| @@ -196,6 +196,6 @@ struct gf128mul_64k { | |||
| 196 | */ | 196 | */ |
| 197 | struct gf128mul_64k *gf128mul_init_64k_bbe(const be128 *g); | 197 | struct gf128mul_64k *gf128mul_init_64k_bbe(const be128 *g); |
| 198 | void gf128mul_free_64k(struct gf128mul_64k *t); | 198 | void gf128mul_free_64k(struct gf128mul_64k *t); |
| 199 | void gf128mul_64k_bbe(be128 *a, struct gf128mul_64k *t); | 199 | void gf128mul_64k_bbe(be128 *a, const struct gf128mul_64k *t); |
| 200 | 200 | ||
| 201 | #endif /* _CRYPTO_GF128MUL_H */ | 201 | #endif /* _CRYPTO_GF128MUL_H */ |
