Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ecc - Move ecc.h to include/crypto/internal

Move ecc.h header file to 'include/crypto/internal' so that it can be
easily imported from everywhere in the kernel tree.

This change is done to allow crypto device drivers to re-use the symbols
exported by 'crypto/ecc.c', thus avoiding code duplication.

Signed-off-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Daniele Alessandrelli and committed by
Herbert Xu
a745d3ac 1730c5aa

+5 -5
+1 -1
crypto/ecc.c
··· 32 32 #include <linux/fips.h> 33 33 #include <crypto/ecdh.h> 34 34 #include <crypto/rng.h> 35 + #include <crypto/internal/ecc.h> 35 36 #include <asm/unaligned.h> 36 37 #include <linux/ratelimit.h> 37 38 38 - #include "ecc.h" 39 39 #include "ecc_curve_defs.h" 40 40 41 41 typedef struct {
crypto/ecc.h include/crypto/internal/ecc.h
+1 -1
crypto/ecdh.c
··· 6 6 */ 7 7 8 8 #include <linux/module.h> 9 + #include <crypto/internal/ecc.h> 9 10 #include <crypto/internal/kpp.h> 10 11 #include <crypto/kpp.h> 11 12 #include <crypto/ecdh.h> 12 13 #include <linux/scatterlist.h> 13 - #include "ecc.h" 14 14 15 15 struct ecdh_ctx { 16 16 unsigned int curve_id;
+1 -1
crypto/ecdsa.c
··· 5 5 6 6 #include <linux/module.h> 7 7 #include <crypto/internal/akcipher.h> 8 + #include <crypto/internal/ecc.h> 8 9 #include <crypto/akcipher.h> 9 10 #include <crypto/ecdh.h> 10 11 #include <linux/asn1_decoder.h> 11 12 #include <linux/scatterlist.h> 12 13 13 - #include "ecc.h" 14 14 #include "ecdsasignature.asn1.h" 15 15 16 16 struct ecc_ctx {
+1 -1
crypto/ecrdsa.c
··· 20 20 #include <linux/crypto.h> 21 21 #include <crypto/streebog.h> 22 22 #include <crypto/internal/akcipher.h> 23 + #include <crypto/internal/ecc.h> 23 24 #include <crypto/akcipher.h> 24 25 #include <linux/oid_registry.h> 25 26 #include <linux/scatterlist.h> 26 27 #include "ecrdsa_params.asn1.h" 27 28 #include "ecrdsa_pub_key.asn1.h" 28 - #include "ecc.h" 29 29 #include "ecrdsa_defs.h" 30 30 31 31 #define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8)
+1 -1
crypto/ecrdsa_defs.h
··· 13 13 #ifndef _CRYTO_ECRDSA_DEFS_H 14 14 #define _CRYTO_ECRDSA_DEFS_H 15 15 16 - #include "ecc.h" 16 + #include <crypto/internal/ecc.h> 17 17 18 18 #define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8) 19 19 #define ECRDSA_MAX_DIGITS (512 / 64)