Skip to content

Commit a745d3a

Browse files
dalessanherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 1730c5a commit a745d3a

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

crypto/ecc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
#include <linux/fips.h>
3333
#include <crypto/ecdh.h>
3434
#include <crypto/rng.h>
35+
#include <crypto/internal/ecc.h>
3536
#include <asm/unaligned.h>
3637
#include <linux/ratelimit.h>
3738

38-
#include "ecc.h"
3939
#include "ecc_curve_defs.h"
4040

4141
typedef struct {

crypto/ecdh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
*/
77

88
#include <linux/module.h>
9+
#include <crypto/internal/ecc.h>
910
#include <crypto/internal/kpp.h>
1011
#include <crypto/kpp.h>
1112
#include <crypto/ecdh.h>
1213
#include <linux/scatterlist.h>
13-
#include "ecc.h"
1414

1515
struct ecdh_ctx {
1616
unsigned int curve_id;

crypto/ecdsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
#include <linux/module.h>
77
#include <crypto/internal/akcipher.h>
8+
#include <crypto/internal/ecc.h>
89
#include <crypto/akcipher.h>
910
#include <crypto/ecdh.h>
1011
#include <linux/asn1_decoder.h>
1112
#include <linux/scatterlist.h>
1213

13-
#include "ecc.h"
1414
#include "ecdsasignature.asn1.h"
1515

1616
struct ecc_ctx {

crypto/ecrdsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#include <linux/crypto.h>
2121
#include <crypto/streebog.h>
2222
#include <crypto/internal/akcipher.h>
23+
#include <crypto/internal/ecc.h>
2324
#include <crypto/akcipher.h>
2425
#include <linux/oid_registry.h>
2526
#include <linux/scatterlist.h>
2627
#include "ecrdsa_params.asn1.h"
2728
#include "ecrdsa_pub_key.asn1.h"
28-
#include "ecc.h"
2929
#include "ecrdsa_defs.h"
3030

3131
#define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8)

crypto/ecrdsa_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef _CRYTO_ECRDSA_DEFS_H
1414
#define _CRYTO_ECRDSA_DEFS_H
1515

16-
#include "ecc.h"
16+
#include <crypto/internal/ecc.h>
1717

1818
#define ECRDSA_MAX_SIG_SIZE (2 * 512 / 8)
1919
#define ECRDSA_MAX_DIGITS (512 / 64)
File renamed without changes.

0 commit comments

Comments
 (0)