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 | |
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).
-rw-r--r-- | src/lib/ffi/ffi.h | 2 | ||||
-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 | ||||
-rw-r--r-- | src/lib/pbkdf/pgp_s2k/pgp_s2k.h | 2 |
6 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index d194c4794..380d3a9ed 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -249,7 +249,7 @@ BOTAN_DLL int botan_hash_output_length(botan_hash_t hash, size_t* output_length) /** * Writes the block size of the hash function to *block_size * @param hash hash object -* @param output_length output buffer to hold the hash function output length +* @param block_size output buffer to hold the hash function output length * @return 0 on success, a negative value on failure */ BOTAN_DLL int botan_hash_block_size(botan_hash_t hash, size_t* block_size); 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 } diff --git a/src/lib/pbkdf/pgp_s2k/pgp_s2k.h b/src/lib/pbkdf/pgp_s2k/pgp_s2k.h index 7d8e60a82..3acf43f91 100644 --- a/src/lib/pbkdf/pgp_s2k/pgp_s2k.h +++ b/src/lib/pbkdf/pgp_s2k/pgp_s2k.h @@ -34,7 +34,7 @@ class BOTAN_DLL OpenPGP_S2K final : public PBKDF { public: /** - * @param hash_in the hash function to use + * @param hash the hash function to use */ explicit OpenPGP_S2K(HashFunction* hash) : m_hash(hash) {} |