diff options
author | Zoltan Gyarmati <[email protected]> | 2017-06-08 13:25:17 +0200 |
---|---|---|
committer | Zoltan Gyarmati <[email protected]> | 2017-06-08 13:25:22 +0200 |
commit | 96bd50b337f2bb41a171490a0b9202f0ab8cef3c (patch) | |
tree | 1885421107516f33ef585a549aa4889da4a95901 /src/lib/hash | |
parent | 2a52cdb662b268612bf414f8066427a213493c3e (diff) |
fix doxygen build: hide method definitions with ifdefs where the
function declaration is already hidden, fix some param names in doxygen
comments, fixes #1067
This work was sponsored by Ribose Inc (@riboseinc).
Diffstat (limited to 'src/lib/hash')
-rw-r--r-- | src/lib/hash/sha1/sha1_armv8/sha1_armv8.cpp | 2 | ||||
-rw-r--r-- | src/lib/hash/sha1/sha1_x86/sha1_x86.cpp | 2 | ||||
-rw-r--r-- | src/lib/hash/sha2_32/sha2_32_armv8/sha2_32_armv8.cpp | 2 | ||||
-rw-r--r-- | src/lib/hash/sha2_32/sha2_32_x86/sha2_32_x86.cpp | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/hash/sha1/sha1_armv8/sha1_armv8.cpp b/src/lib/hash/sha1/sha1_armv8/sha1_armv8.cpp index 97e56bfd0..1d5ebaa4e 100644 --- a/src/lib/hash/sha1/sha1_armv8/sha1_armv8.cpp +++ b/src/lib/hash/sha1/sha1_armv8/sha1_armv8.cpp @@ -16,6 +16,7 @@ namespace Botan { * SHA-1 using CPU instructions in ARMv8 */ //static +#if defined(BOTAN_HAS_SHA1_ARMV8) BOTAN_FUNC_ISA("+crypto") void SHA_160::sha1_armv8_compress_n(secure_vector<uint32_t>& digest, const uint8_t input8[], size_t blocks) { @@ -201,5 +202,6 @@ void SHA_160::sha1_armv8_compress_n(secure_vector<uint32_t>& digest, const uint8 vst1q_u32(&digest[0], ABCD); digest[4] = E0; } +#endif } diff --git a/src/lib/hash/sha1/sha1_x86/sha1_x86.cpp b/src/lib/hash/sha1/sha1_x86/sha1_x86.cpp index 0d774662b..2249c3427 100644 --- a/src/lib/hash/sha1/sha1_x86/sha1_x86.cpp +++ b/src/lib/hash/sha1/sha1_x86/sha1_x86.cpp @@ -17,6 +17,7 @@ namespace Botan { +#if defined(BOTAN_HAS_SHA1_X86_SHA_NI) BOTAN_FUNC_ISA("sha") void SHA_160::sha1_compress_x86(secure_vector<uint32_t>& digest, const uint8_t input[], @@ -210,5 +211,6 @@ void SHA_160::sha1_compress_x86(secure_vector<uint32_t>& digest, _mm_storeu_si128((__m128i*) state, ABCD); state[4] = _mm_extract_epi32(E0, 3); } +#endif } diff --git a/src/lib/hash/sha2_32/sha2_32_armv8/sha2_32_armv8.cpp b/src/lib/hash/sha2_32/sha2_32_armv8/sha2_32_armv8.cpp index 9bf05047d..a909b1fbf 100644 --- a/src/lib/hash/sha2_32/sha2_32_armv8/sha2_32_armv8.cpp +++ b/src/lib/hash/sha2_32/sha2_32_armv8/sha2_32_armv8.cpp @@ -16,6 +16,7 @@ namespace Botan { * SHA-256 using CPU instructions in ARMv8 */ //static +#if defined(BOTAN_HAS_SHA2_32_ARMV8) BOTAN_FUNC_ISA("+crypto") void SHA_256::compress_digest_armv8(secure_vector<uint32_t>& digest, const uint8_t input8[], size_t blocks) { @@ -198,5 +199,6 @@ void SHA_256::compress_digest_armv8(secure_vector<uint32_t>& digest, const uint8 vst1q_u32(&digest[0], STATE0); vst1q_u32(&digest[4], STATE1); } +#endif } diff --git a/src/lib/hash/sha2_32/sha2_32_x86/sha2_32_x86.cpp b/src/lib/hash/sha2_32/sha2_32_x86/sha2_32_x86.cpp index aadb48710..99c0e374f 100644 --- a/src/lib/hash/sha2_32/sha2_32_x86/sha2_32_x86.cpp +++ b/src/lib/hash/sha2_32/sha2_32_x86/sha2_32_x86.cpp @@ -12,6 +12,7 @@ namespace Botan { // called from sha2_32.cpp +#if defined(BOTAN_HAS_SHA2_32_X86) void SHA_256::compress_digest_x86(secure_vector<uint32_t>& digest, const uint8_t input[], size_t blocks) { __m128i STATE0, STATE1; @@ -206,5 +207,6 @@ void SHA_256::compress_digest_x86(secure_vector<uint32_t>& digest, const uint8_t _mm_storeu_si128((__m128i*) &state[0], STATE0); _mm_storeu_si128((__m128i*) &state[4], STATE1); } +#endif } |