Providers: move all digests
authorRichard Levitte <levitte@openssl.org>
Fri, 4 Oct 2019 10:30:33 +0000 (12:30 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 10 Oct 2019 12:12:15 +0000 (14:12 +0200)
commit7c214f1092f7622a1c2fdc5cfe70ddc94918daa3
treef62016d368c92dfddb8becf4d2f7ff79d538cfe9
parente42cf7180b4fb32e985f15484e04c7fb8afc11ab
Providers: move all digests

From providers/{common,default,legacy}/ to providers/implementations/
However, providers/common/digests/digest_common.c stays where it is,
because it's support code rather than an implementation.

To better support all kinds of implementations with common code, we
add the library providers/libcommon.a.  Code that ends up in this
library must be FIPS agnostic.

While we're moving things around, though, we move digestscommon.h
from providers/common/include/internal to providers/common/include/prov,
thereby starting on a provider specific include structure, which
follows the line of thoughts of the recent header file reorganization.
We modify the affected '#include "internal/something.h"' to
'#include "prov/something.h"'.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10088)
31 files changed:
crypto/blake2/m_blake2b.c
crypto/blake2/m_blake2s.c
crypto/evp/legacy_md5_sha1.c
crypto/md5/md5_sha1.c
providers/build.info
providers/common/digests/build.info
providers/common/digests/digest_common.c
providers/common/include/prov/digestcommon.h [moved from providers/common/include/internal/digestcommon.h with 100% similarity]
providers/default/build.info
providers/default/digests/build.info [deleted file]
providers/implementations/build.info
providers/implementations/digests/blake2_impl.h [moved from providers/default/digests/blake2_impl.h with 100% similarity]
providers/implementations/digests/blake2_prov.c [moved from providers/default/digests/blake2_prov.c with 94% similarity]
providers/implementations/digests/blake2b_prov.c [moved from providers/default/digests/blake2b_prov.c with 99% similarity]
providers/implementations/digests/blake2s_prov.c [moved from providers/default/digests/blake2s_prov.c with 99% similarity]
providers/implementations/digests/build.info [new file with mode: 0644]
providers/implementations/digests/md2_prov.c [moved from providers/legacy/digests/md2_prov.c with 94% similarity]
providers/implementations/digests/md4_prov.c [moved from providers/legacy/digests/md4_prov.c with 94% similarity]
providers/implementations/digests/md5_prov.c [moved from providers/default/digests/md5_prov.c with 94% similarity]
providers/implementations/digests/md5_sha1_prov.c [moved from providers/default/digests/md5_sha1_prov.c with 96% similarity]
providers/implementations/digests/mdc2_prov.c [moved from providers/legacy/digests/mdc2_prov.c with 97% similarity]
providers/implementations/digests/ripemd_prov.c [moved from providers/legacy/digests/ripemd_prov.c with 94% similarity]
providers/implementations/digests/sha2_prov.c [moved from providers/common/digests/sha2_prov.c with 98% similarity]
providers/implementations/digests/sha3_prov.c [moved from providers/common/digests/sha3_prov.c with 99% similarity]
providers/implementations/digests/sm3_prov.c [moved from providers/default/digests/sm3_prov.c with 94% similarity]
providers/implementations/digests/wp_prov.c [moved from providers/legacy/digests/wp_prov.c with 94% similarity]
providers/implementations/include/prov/blake2.h [moved from providers/default/include/internal/blake2.h with 100% similarity]
providers/implementations/include/prov/md5_sha1.h [moved from providers/default/include/internal/md5_sha1.h with 100% similarity]
providers/implementations/macs/blake2_mac_impl.c
providers/legacy/build.info
providers/legacy/digests/build.info [deleted file]