aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-03 12:37:26 -0500
committerJack Lloyd <[email protected]>2017-12-03 12:37:26 -0500
commit4030efb9af679fde3b259b46a8bb9163d75bb9c2 (patch)
tree61287e0d8dda5f4c4419fca41edb002d8369dbe2 /src
parent9f6ce97470adad5bf5840f3a569e37f9a01ec831 (diff)
Avoid calling lookup("DES") twice when clone will do the job.
Diffstat (limited to 'src')
-rw-r--r--src/lib/mac/x919_mac/x919_mac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mac/x919_mac/x919_mac.cpp b/src/lib/mac/x919_mac/x919_mac.cpp
index ef1e78602..0cbf08795 100644
--- a/src/lib/mac/x919_mac/x919_mac.cpp
+++ b/src/lib/mac/x919_mac/x919_mac.cpp
@@ -91,7 +91,7 @@ MessageAuthenticationCode* ANSI_X919_MAC::clone() const
*/
ANSI_X919_MAC::ANSI_X919_MAC() :
m_des1(BlockCipher::create("DES")),
- m_des2(BlockCipher::create("DES")),
+ m_des2(m_des1->clone()),
m_position(0)
{
}