projects
/
platform
/
core
/
test
/
security-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a02a9f
)
Fix T9050_yaca_rsa_encryption_paddings test
94/210394/1
author
Dariusz Michaluk
<d.michaluk@samsung.com>
Thu, 18 Jul 2019 15:10:21 +0000
(17:10 +0200)
committer
Dariusz Michaluk
<d.michaluk@samsung.com>
Thu, 18 Jul 2019 15:10:21 +0000
(17:10 +0200)
Change-Id: I2ae963ff203bff72e49a7d1c167695dbeb50ec19
src/yaca/yaca-test-rsa.cpp
patch
|
blob
|
history
diff --git
a/src/yaca/yaca-test-rsa.cpp
b/src/yaca/yaca-test-rsa.cpp
index
89634ac
..
3fcd2a5
100644
(file)
--- a/
src/yaca/yaca-test-rsa.cpp
+++ b/
src/yaca/yaca-test-rsa.cpp
@@
-194,7
+194,7
@@
void test_rsa_padding(const KeyPair& kp, const PaddingInfo& pi, EncryptionType e
expected = YACA_ERROR_INVALID_PARAMETER;
if (p.padding == YACA_PADDING_NONE ||
(et == ET_PUB && ((p.padding == YACA_PADDING_PKCS1 && padding == YACA_PADDING_PKCS1_SSLV23) ||
- (p.padding ==
YACA_PADDING_PKCS1_SSLV23 && padding == YACA_PADDING_PKCS1
))))
+ (p.padding ==
padding
))))
expected = YACA_ERROR_NONE;
YACA_RESULT(expected, decrypt(p.padding, dec_key.get(),