Commit a745d3ac authored by Daniele Alessandrelli's avatar Daniele Alessandrelli Committed by Herbert Xu

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: default avatarDaniele Alessandrelli <daniele.alessandrelli@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1730c5aa
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
#include <linux/fips.h> #include <linux/fips.h>
#include <crypto/ecdh.h> #include <crypto/ecdh.h>
#include <crypto/rng.h> #include <crypto/rng.h>
#include <crypto/internal/ecc.h>
#include <asm/unaligned.h> #include <asm/unaligned.h>
#include <linux/ratelimit.h> #include <linux/ratelimit.h>
#include "ecc.h"
#include "ecc_curve_defs.h" #include "ecc_curve_defs.h"
typedef struct { typedef struct {
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <crypto/internal/ecc.h>
#include <crypto/internal/kpp.h> #include <crypto/internal/kpp.h>
#include <crypto/kpp.h> #include <crypto/kpp.h>
#include <crypto/ecdh.h> #include <crypto/ecdh.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include "ecc.h"
struct ecdh_ctx { struct ecdh_ctx {
unsigned int curve_id; unsigned int curve_id;
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
#include <linux/module.h> #include <linux/module.h>
#include <crypto/internal/akcipher.h> #include <crypto/internal/akcipher.h>
#include <crypto/internal/ecc.h>
#include <crypto/akcipher.h> #include <crypto/akcipher.h>
#include <crypto/ecdh.h> #include <crypto/ecdh.h>
#include <linux/asn1_decoder.h> #include <linux/asn1_decoder.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include "ecc.h"
#include "ecdsasignature.asn1.h" #include "ecdsasignature.asn1.h"
struct ecc_ctx { struct ecc_ctx {
......
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
#include <linux/crypto.h> #include <linux/crypto.h>
#include <crypto/streebog.h> #include <crypto/streebog.h>
#include <crypto/internal/akcipher.h> #include <crypto/internal/akcipher.h>
#include <crypto/internal/ecc.h>
#include <crypto/akcipher.h> #include <crypto/akcipher.h>
#include <linux/oid_registry.h> #include <linux/oid_registry.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include "ecrdsa_params.asn1.h" #include "ecrdsa_params.asn1.h"
#include "ecrdsa_pub_key.asn1.h" #include "ecrdsa_pub_key.asn1.h"
#include "ecc.h"
#include "ecrdsa_defs.h" #include "ecrdsa_defs.h"
#define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8) #define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8)
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#ifndef _CRYTO_ECRDSA_DEFS_H #ifndef _CRYTO_ECRDSA_DEFS_H
#define _CRYTO_ECRDSA_DEFS_H #define _CRYTO_ECRDSA_DEFS_H
#include "ecc.h" #include <crypto/internal/ecc.h>
#define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8) #define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8)
#define ECRDSA_MAX_DIGITS (512 / 64) #define ECRDSA_MAX_DIGITS (512 / 64)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment