summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-10-04 10:24:09 +0200
committerRichard Levitte <levitte@openssl.org>2019-10-10 14:12:15 +0200
commit5687e357c60b31dc274c6d14f1cd623d0cff469b (patch)
tree6cac9157790e44435359726e71aa033fb18d8701 /providers
parentdec95d75897125133380c7ce3c6ce58c93c06f10 (diff)
Providers: move common exchange,kdfs,keymgmt,macs,signature
From providers/common/ to providers/implementations/ Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10088)
Diffstat (limited to 'providers')
-rw-r--r--providers/build.info2
-rw-r--r--providers/common/build.info2
-rw-r--r--providers/common/exchange/build.info5
-rw-r--r--providers/common/kdfs/build.info5
-rw-r--r--providers/common/keymgmt/build.info8
-rw-r--r--providers/common/macs/build.info9
-rw-r--r--providers/common/signature/build.info7
-rw-r--r--providers/implementations/build.info1
-rw-r--r--providers/implementations/exchange/build.info8
-rw-r--r--providers/implementations/exchange/dh_exch.c (renamed from providers/common/exchange/dh_exch.c)0
-rw-r--r--providers/implementations/kdfs/build.info22
-rw-r--r--providers/implementations/kdfs/hkdf.c (renamed from providers/common/kdfs/hkdf.c)0
-rw-r--r--providers/implementations/kdfs/kbkdf.c (renamed from providers/common/kdfs/kbkdf.c)0
-rw-r--r--providers/implementations/kdfs/pbkdf2.c (renamed from providers/common/kdfs/pbkdf2.c)0
-rw-r--r--providers/implementations/kdfs/pbkdf2.h (renamed from providers/common/kdfs/pbkdf2.h)0
-rw-r--r--providers/implementations/kdfs/pbkdf2_fips.c (renamed from providers/common/kdfs/pbkdf2_fips.c)0
-rw-r--r--providers/implementations/kdfs/sskdf.c (renamed from providers/common/kdfs/sskdf.c)0
-rw-r--r--providers/implementations/kdfs/tls1_prf.c (renamed from providers/common/kdfs/tls1_prf.c)0
-rw-r--r--providers/implementations/keymgmt/build.info12
-rw-r--r--providers/implementations/keymgmt/dh_kmgmt.c (renamed from providers/common/keymgmt/dh_kmgmt.c)0
-rw-r--r--providers/implementations/keymgmt/dsa_kmgmt.c (renamed from providers/common/keymgmt/dsa_kmgmt.c)0
-rw-r--r--providers/implementations/macs/build.info15
-rw-r--r--providers/implementations/macs/cmac_prov.c (renamed from providers/common/macs/cmac_prov.c)0
-rw-r--r--providers/implementations/macs/gmac_prov.c (renamed from providers/common/macs/gmac_prov.c)0
-rw-r--r--providers/implementations/macs/hmac_prov.c (renamed from providers/common/macs/hmac_prov.c)0
-rw-r--r--providers/implementations/macs/kmac_prov.c (renamed from providers/common/macs/kmac_prov.c)0
-rw-r--r--providers/implementations/signature/build.info10
-rw-r--r--providers/implementations/signature/dsa.c (renamed from providers/common/signature/dsa.c)0
28 files changed, 70 insertions, 36 deletions
diff --git a/providers/build.info b/providers/build.info
index e951c6229d..973adac5c7 100644
--- a/providers/build.info
+++ b/providers/build.info
@@ -28,7 +28,7 @@
# FIPS_MODE undefined. The default and legacy
# providers use this.
-SUBDIRS=common default
+SUBDIRS=common default implementations
INCLUDE[../libcrypto]=common/include
diff --git a/providers/common/build.info b/providers/common/build.info
index 95c2fd107e..4e662eb97a 100644
--- a/providers/common/build.info
+++ b/providers/common/build.info
@@ -1,4 +1,4 @@
-SUBDIRS=digests ciphers macs kdfs exchange keymgmt signature
+SUBDIRS=digests ciphers
SOURCE[../libcommon.a]=provider_err.c provlib.c
$FIPSCOMMON=provider_util.c
diff --git a/providers/common/exchange/build.info b/providers/common/exchange/build.info
deleted file mode 100644
index 90ea0c9a02..0000000000
--- a/providers/common/exchange/build.info
+++ /dev/null
@@ -1,5 +0,0 @@
-$GOAL=../../libimplementations.a
-
-IF[{- !$disabled{dh} -}]
- SOURCE[$GOAL]=dh_exch.c
-ENDIF
diff --git a/providers/common/kdfs/build.info b/providers/common/kdfs/build.info
deleted file mode 100644
index b2b354dc34..0000000000
--- a/providers/common/kdfs/build.info
+++ /dev/null
@@ -1,5 +0,0 @@
-$GOAL=../../libimplementations.a
-
-SOURCE[$GOAL]=tls1_prf.c hkdf.c kbkdf.c pbkdf2.c sskdf.c
-SOURCE[../../libfips.a]=pbkdf2_fips.c
-SOURCE[../../libnonfips.a]=pbkdf2_fips.c
diff --git a/providers/common/keymgmt/build.info b/providers/common/keymgmt/build.info
deleted file mode 100644
index 533c489077..0000000000
--- a/providers/common/keymgmt/build.info
+++ /dev/null
@@ -1,8 +0,0 @@
-$GOAL=../../libimplementations.a
-
-IF[{- !$disabled{dh} -}]
- SOURCE[$GOAL]=dh_kmgmt.c
-ENDIF
-IF[{- !$disabled{dsa} -}]
- SOURCE[$GOAL]=dsa_kmgmt.c
-ENDIF
diff --git a/providers/common/macs/build.info b/providers/common/macs/build.info
deleted file mode 100644
index 1eafe70604..0000000000
--- a/providers/common/macs/build.info
+++ /dev/null
@@ -1,9 +0,0 @@
-$GOAL=../../libimplementations.a
-
-$COMMON=gmac_prov.c hmac_prov.c kmac_prov.c
-
-IF[{- !$disabled{cmac} -}]
- $COMMON=$COMMON cmac_prov.c
-ENDIF
-
-SOURCE[$GOAL]=$COMMON
diff --git a/providers/common/signature/build.info b/providers/common/signature/build.info
deleted file mode 100644
index 496fb7d7d8..0000000000
--- a/providers/common/signature/build.info
+++ /dev/null
@@ -1,7 +0,0 @@
-$GOAL=../../libimplementations.a
-
-IF[{- !$disabled{dsa} -}]
- SOURCE[$GOAL]=dsa.c
-ENDIF
-
-
diff --git a/providers/implementations/build.info b/providers/implementations/build.info
new file mode 100644
index 0000000000..1170ef96b3
--- /dev/null
+++ b/providers/implementations/build.info
@@ -0,0 +1 @@
+SUBDIRS=macs kdfs exchange keymgmt signature
diff --git a/providers/implementations/exchange/build.info b/providers/implementations/exchange/build.info
new file mode 100644
index 0000000000..fdedb86c03
--- /dev/null
+++ b/providers/implementations/exchange/build.info
@@ -0,0 +1,8 @@
+# We make separate GOAL variables for each algorithm, to make it easy to
+# switch each to the Legacy provider when needed.
+
+$DH_GOAL=../../libimplementations.a
+
+IF[{- !$disabled{dh} -}]
+ SOURCE[$DH_GOAL]=dh_exch.c
+ENDIF
diff --git a/providers/common/exchange/dh_exch.c b/providers/implementations/exchange/dh_exch.c
index cfbda43fb8..cfbda43fb8 100644
--- a/providers/common/exchange/dh_exch.c
+++ b/providers/implementations/exchange/dh_exch.c
diff --git a/providers/implementations/kdfs/build.info b/providers/implementations/kdfs/build.info
new file mode 100644
index 0000000000..8800b12f7e
--- /dev/null
+++ b/providers/implementations/kdfs/build.info
@@ -0,0 +1,22 @@
+# We make separate GOAL variables for each algorithm, to make it easy to
+# switch each to the Legacy provider when needed.
+
+$TLS1_PRF_GOAL=../../libimplementations.a
+$HKDF_GOAL=../../libimplementations.a
+$KBKDF_GOAL=../../libimplementations.a
+$PBKDF2_GOAL=../../libimplementations.a
+$SSKDF_GOAL=../../libimplementations.a
+
+SOURCE[$TLS1_PRF_GOAL]=tls1_prf.c
+
+SOURCE[$HKDF_GOAL]=hkdf.c
+
+SOURCE[$KBKDF_GOAL]=kbkdf.c
+
+SOURCE[$PBKDF2_GOAL]=pbkdf2.c
+# Extra code to satisfy the FIPS and non-FIPS separation.
+# When the PBKDF2 moves to legacy, this can be removed.
+SOURCE[../../libfips.a]=pbkdf2_fips.c
+SOURCE[../../libnonfips.a]=pbkdf2_fips.c
+
+SOURCE[$SSKDF_GOAL]=sskdf.c
diff --git a/providers/common/kdfs/hkdf.c b/providers/implementations/kdfs/hkdf.c
index 041811f0e1..041811f0e1 100644
--- a/providers/common/kdfs/hkdf.c
+++ b/providers/implementations/kdfs/hkdf.c
diff --git a/providers/common/kdfs/kbkdf.c b/providers/implementations/kdfs/kbkdf.c
index ffffef0b17..ffffef0b17 100644
--- a/providers/common/kdfs/kbkdf.c
+++ b/providers/implementations/kdfs/kbkdf.c
diff --git a/providers/common/kdfs/pbkdf2.c b/providers/implementations/kdfs/pbkdf2.c
index 68aa0aa7c4..68aa0aa7c4 100644
--- a/providers/common/kdfs/pbkdf2.c
+++ b/providers/implementations/kdfs/pbkdf2.c
diff --git a/providers/common/kdfs/pbkdf2.h b/providers/implementations/kdfs/pbkdf2.h
index c8c2e5b8a7..c8c2e5b8a7 100644
--- a/providers/common/kdfs/pbkdf2.h
+++ b/providers/implementations/kdfs/pbkdf2.h
diff --git a/providers/common/kdfs/pbkdf2_fips.c b/providers/implementations/kdfs/pbkdf2_fips.c
index d33782b24c..d33782b24c 100644
--- a/providers/common/kdfs/pbkdf2_fips.c
+++ b/providers/implementations/kdfs/pbkdf2_fips.c
diff --git a/providers/common/kdfs/sskdf.c b/providers/implementations/kdfs/sskdf.c
index 1e538a9c0a..1e538a9c0a 100644
--- a/providers/common/kdfs/sskdf.c
+++ b/providers/implementations/kdfs/sskdf.c
diff --git a/providers/common/kdfs/tls1_prf.c b/providers/implementations/kdfs/tls1_prf.c
index af49b1b044..af49b1b044 100644
--- a/providers/common/kdfs/tls1_prf.c
+++ b/providers/implementations/kdfs/tls1_prf.c
diff --git a/providers/implementations/keymgmt/build.info b/providers/implementations/keymgmt/build.info
new file mode 100644
index 0000000000..dc6039b02d
--- /dev/null
+++ b/providers/implementations/keymgmt/build.info
@@ -0,0 +1,12 @@
+# We make separate GOAL variables for each algorithm, to make it easy to
+# switch each to the Legacy provider when needed.
+
+$DH_GOAL=../../libimplementations.a
+$DSA_GOAL=../../libimplementations.a
+
+IF[{- !$disabled{dh} -}]
+ SOURCE[$DH_GOAL]=dh_kmgmt.c
+ENDIF
+IF[{- !$disabled{dsa} -}]
+ SOURCE[$DSA_GOAL]=dsa_kmgmt.c
+ENDIF
diff --git a/providers/common/keymgmt/dh_kmgmt.c b/providers/implementations/keymgmt/dh_kmgmt.c
index c13f07546b..c13f07546b 100644
--- a/providers/common/keymgmt/dh_kmgmt.c
+++ b/providers/implementations/keymgmt/dh_kmgmt.c
diff --git a/providers/common/keymgmt/dsa_kmgmt.c b/providers/implementations/keymgmt/dsa_kmgmt.c
index a53c0b212c..a53c0b212c 100644
--- a/providers/common/keymgmt/dsa_kmgmt.c
+++ b/providers/implementations/keymgmt/dsa_kmgmt.c
diff --git a/providers/implementations/macs/build.info b/providers/implementations/macs/build.info
new file mode 100644
index 0000000000..d4538098e0
--- /dev/null
+++ b/providers/implementations/macs/build.info
@@ -0,0 +1,15 @@
+# We make separate GOAL variables for each algorithm, to make it easy to
+# switch each to the Legacy provider when needed.
+
+$GMAC_GOAL=../../libimplementations.a
+$HMAC_GOAL=../../libimplementations.a
+$KMAC_GOAL=../../libimplementations.a
+$CMAC_GOAL=../../libimplementations.a
+
+SOURCE[$GMAC_GOAL]=gmac_prov.c
+SOURCE[$HMAC_GOAL]=hmac_prov.c
+SOURCE[$KMAC_GOAL]=kmac_prov.c
+
+IF[{- !$disabled{cmac} -}]
+ SOURCE[$CMAC_GOAL]=cmac_prov.c
+ENDIF
diff --git a/providers/common/macs/cmac_prov.c b/providers/implementations/macs/cmac_prov.c
index c01b2f87ad..c01b2f87ad 100644
--- a/providers/common/macs/cmac_prov.c
+++ b/providers/implementations/macs/cmac_prov.c
diff --git a/providers/common/macs/gmac_prov.c b/providers/implementations/macs/gmac_prov.c
index 3d81af8766..3d81af8766 100644
--- a/providers/common/macs/gmac_prov.c
+++ b/providers/implementations/macs/gmac_prov.c
diff --git a/providers/common/macs/hmac_prov.c b/providers/implementations/macs/hmac_prov.c
index e9d7647ce2..e9d7647ce2 100644
--- a/providers/common/macs/hmac_prov.c
+++ b/providers/implementations/macs/hmac_prov.c
diff --git a/providers/common/macs/kmac_prov.c b/providers/implementations/macs/kmac_prov.c
index 99bcbf7da9..99bcbf7da9 100644
--- a/providers/common/macs/kmac_prov.c
+++ b/providers/implementations/macs/kmac_prov.c
diff --git a/providers/implementations/signature/build.info b/providers/implementations/signature/build.info
new file mode 100644
index 0000000000..a9687fc929
--- /dev/null
+++ b/providers/implementations/signature/build.info
@@ -0,0 +1,10 @@
+# We make separate GOAL variables for each algorithm, to make it easy to
+# switch each to the Legacy provider when needed.
+
+$DSA_GOAL=../../libimplementations.a
+
+IF[{- !$disabled{dsa} -}]
+ SOURCE[$DSA_GOAL]=dsa.c
+ENDIF
+
+
diff --git a/providers/common/signature/dsa.c b/providers/implementations/signature/dsa.c
index 1d6b565d38..1d6b565d38 100644
--- a/providers/common/signature/dsa.c
+++ b/providers/implementations/signature/dsa.c