aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/padding.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-02-04 18:05:34 -0500
committerJack Lloyd <[email protected]>2022-02-06 08:52:16 -0500
commitfbb7c5fba1bcde2460dda48c1423a23b3b3062bf (patch)
treec0b9cd348067f0813d80e9b1b23b149d1a0d0af2 /src/lib/pk_pad/padding.h
parent3c8d79246c7c5c57296d3165922b58aad401e5e3 (diff)
Fix clang-tidy performance warnings
Diffstat (limited to 'src/lib/pk_pad/padding.h')
-rw-r--r--src/lib/pk_pad/padding.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/pk_pad/padding.h b/src/lib/pk_pad/padding.h
index ed05ec381..349e1c0f8 100644
--- a/src/lib/pk_pad/padding.h
+++ b/src/lib/pk_pad/padding.h
@@ -20,7 +20,7 @@ namespace Botan {
* @param algo the algorithm for which to look up supported padding schemes
* @return a vector of supported padding schemes
*/
-BOTAN_TEST_API const std::vector<std::string> get_sig_paddings(const std::string algo);
+BOTAN_TEST_API const std::vector<std::string> get_sig_paddings(const std::string& algo);
/**
* Returns true iff the given padding scheme is valid for the given
@@ -29,7 +29,8 @@ BOTAN_TEST_API const std::vector<std::string> get_sig_paddings(const std::string
* @param algo the signature algorithm to be used
* @param padding the padding scheme to be used
*/
-bool sig_algo_and_pad_ok(const std::string algo, const std::string padding);
+bool sig_algo_and_pad_ok(const std::string& algo,
+ const std::string& padding);
}