From 51e73135ec05e2c06bf6df310298dddb053322f1 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 15 Aug 2013 11:41:39 +0200
Subject: [PATCH] Fixed expected test result case for unknown padding modes
---
tests/suites/test_suite_cipher.padding.data | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/suites/test_suite_cipher.padding.data b/tests/suites/test_suite_cipher.padding.data
index b37fa3c32..c17ab2e43 100644
--- a/tests/suites/test_suite_cipher.padding.data
+++ b/tests/suites/test_suite_cipher.padding.data
@@ -44,19 +44,19 @@ set_padding:POLARSSL_CIPHER_NULL:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_
Set non-existent padding with AES-CBC
depends_on:POLARSSL_AES_C
-set_padding:POLARSSL_CIPHER_AES_128_CBC:-1:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
+set_padding:POLARSSL_CIPHER_AES_128_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
Set non-existent padding with CAMELLIA-CBC
depends_on:POLARSSL_CAMELLIA_C
-set_padding:POLARSSL_CIPHER_CAMELLIA_128_CBC:-1:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
+set_padding:POLARSSL_CIPHER_CAMELLIA_128_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
Set non-existent padding with DES-CBC
depends_on:POLARSSL_DES_C
-set_padding:POLARSSL_CIPHER_DES_CBC:-1:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
+set_padding:POLARSSL_CIPHER_DES_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
Set non-existent padding with BLOWFISH-CBC
depends_on:POLARSSL_BLOWFISH_C
-set_padding:POLARSSL_CIPHER_BLOWFISH_CBC:-1:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
+set_padding:POLARSSL_CIPHER_BLOWFISH_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
Check PKCS padding #1 (correct)
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD0004040404":0:4