summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library
diff options
context:
space:
mode:
authorQin Long <qin.long@intel.com>2015-09-02 08:44:46 +0000
committerlgao4 <lgao4@Edk2>2015-09-02 08:44:46 +0000
commitf858b8715d8c5fcab2be5af8af087684f959668a (patch)
treea6aebd921691358b6dac737f77efaba762a00eff /CryptoPkg/Library
parent9495c01ee8283d5aa6aa52436f2f7338ae6d2980 (diff)
downloadedk2-f858b8715d8c5fcab2be5af8af087684f959668a.tar.gz
edk2-f858b8715d8c5fcab2be5af8af087684f959668a.tar.bz2
edk2-f858b8715d8c5fcab2be5af8af087684f959668a.zip
CryptoPkg: Fix one wrong parameter for weak key checking
Fix one wrong offset which is passed into DES weak key checking in TdesInit(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long <qin.long@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18389 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CryptoPkg/Library')
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c
index f89094a581..8025a49cc8 100644
--- a/CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c
+++ b/CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c
@@ -1,7 +1,7 @@
/** @file
TDES Wrapper Implementation over OpenSSL.
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -90,7 +90,7 @@ TdesInit (
return TRUE;
}
- if (DES_is_weak_key ((const_DES_cblock *) Key + 8) == 1) {
+ if (DES_is_weak_key ((const_DES_cblock *) (Key + 8)) == 1) {
return FALSE;
}
@@ -101,7 +101,7 @@ TdesInit (
return TRUE;
}
- if (DES_is_weak_key ((const_DES_cblock *) Key + 16) == 1) {
+ if (DES_is_weak_key ((const_DES_cblock *) (Key + 16)) == 1) {
return FALSE;
}