2013-07-24 16:05:00 +00:00
|
|
|
Set padding with AES-CBC
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CBC:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-24 16:05:00 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_AES_128_CBC:POLARSSL_PADDING_PKCS7:0
|
|
|
|
|
|
|
|
Set padding with AES-CFB
|
|
|
|
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CFB
|
|
|
|
set_padding:POLARSSL_CIPHER_AES_128_CFB128:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set padding with AES-CTR
|
|
|
|
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CTR
|
|
|
|
set_padding:POLARSSL_CIPHER_AES_128_CTR:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set padding with CAMELLIA-CBC
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CAMELLIA_C:POLARSSL_CIPHER_MODE_CBC:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-24 16:05:00 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_CAMELLIA_128_CBC:POLARSSL_PADDING_PKCS7:0
|
|
|
|
|
|
|
|
Set padding with CAMELLIA-CFB
|
|
|
|
depends_on:POLARSSL_CAMELLIA_C:POLARSSL_CIPHER_MODE_CFB
|
|
|
|
set_padding:POLARSSL_CIPHER_CAMELLIA_128_CFB128:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set padding with CAMELLIA-CTR
|
|
|
|
depends_on:POLARSSL_CAMELLIA_C:POLARSSL_CIPHER_MODE_CTR
|
|
|
|
set_padding:POLARSSL_CIPHER_CAMELLIA_128_CTR:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set padding with DES-CBC
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_DES_C:POLARSSL_CIPHER_MODE_CBC:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-24 16:05:00 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_DES_CBC:POLARSSL_PADDING_PKCS7:0
|
|
|
|
|
|
|
|
Set padding with BLOWFISH-CBC
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_BLOWFISH_C:POLARSSL_CIPHER_MODE_CBC:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-24 16:05:00 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_BLOWFISH_CBC:POLARSSL_PADDING_PKCS7:0
|
|
|
|
|
|
|
|
Set padding with BLOWFISH-CFB
|
|
|
|
depends_on:POLARSSL_BLOWFISH_C:POLARSSL_CIPHER_MODE_CFB
|
|
|
|
set_padding:POLARSSL_CIPHER_BLOWFISH_CFB64:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set padding with BLOWFISH-CTR
|
|
|
|
depends_on:POLARSSL_BLOWFISH_C:POLARSSL_CIPHER_MODE_CTR
|
|
|
|
set_padding:POLARSSL_CIPHER_BLOWFISH_CTR:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set padding with NULL
|
|
|
|
depends_on:POLARSSL_CIPHER_NULL_CIPHER
|
|
|
|
set_padding:POLARSSL_CIPHER_NULL:POLARSSL_PADDING_PKCS7:POLARSSL_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
Set non-existent padding with AES-CBC
|
2013-09-13 12:41:45 +00:00
|
|
|
depends_on:POLARSSL_AES_C:POLARSSL_CIPHER_MODE_CBC
|
2013-08-15 09:41:39 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_AES_128_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
|
2013-07-24 16:05:00 +00:00
|
|
|
|
|
|
|
Set non-existent padding with CAMELLIA-CBC
|
2013-09-13 12:41:45 +00:00
|
|
|
depends_on:POLARSSL_CAMELLIA_C:POLARSSL_CIPHER_MODE_CBC
|
2013-08-15 09:41:39 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_CAMELLIA_128_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
|
2013-07-24 16:05:00 +00:00
|
|
|
|
|
|
|
Set non-existent padding with DES-CBC
|
2013-09-13 12:41:45 +00:00
|
|
|
depends_on:POLARSSL_DES_C:POLARSSL_CIPHER_MODE_CBC
|
2013-08-15 09:41:39 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_DES_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
|
2013-07-24 16:05:00 +00:00
|
|
|
|
|
|
|
Set non-existent padding with BLOWFISH-CBC
|
2013-09-13 12:41:45 +00:00
|
|
|
depends_on:POLARSSL_BLOWFISH_C:POLARSSL_CIPHER_MODE_CBC
|
2013-08-15 09:41:39 +00:00
|
|
|
set_padding:POLARSSL_CIPHER_BLOWFISH_CBC:-1:POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE
|
2013-07-26 08:55:02 +00:00
|
|
|
|
|
|
|
Check PKCS padding #1 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD0004040404":0:4
|
|
|
|
|
|
|
|
Check PKCS padding #2 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD0001":0:4
|
|
|
|
|
|
|
|
Check PKCS padding #3 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD000101":0:5
|
|
|
|
|
|
|
|
Check PKCS padding #4 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"030303":0:0
|
|
|
|
|
|
|
|
Check PKCS padding #5 (null padding)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD0000":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #6 (too few padding bytes)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD0002":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
2013-10-27 16:21:14 +00:00
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #1)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00030203":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
2013-10-27 16:21:14 +00:00
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #2)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00030103":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #3)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00030703":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #4)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00030b03":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #5)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00031303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #6)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00032303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #7)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00034203":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #8)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00038303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #9)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00020303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #10)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00010303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #11)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00070303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #12)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD000b0303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #13)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00130303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #14)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00230303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #15)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00420303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check PKCS padding #7 (non-uniform padding bytes #16)
|
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"DABBAD00830303":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
2013-07-26 08:55:02 +00:00
|
|
|
Check PKCS padding #8 (overlong)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_PKCS7
|
2013-07-26 08:55:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_PKCS7:"040404":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
2013-07-26 10:46:02 +00:00
|
|
|
|
|
|
|
Check one and zeros padding #1 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"DABBAD0080":0:4
|
|
|
|
|
|
|
|
Check one and zeros padding #2 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"DABBAD008000":0:4
|
|
|
|
|
|
|
|
Check one and zeros padding #3 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"DABBAD00800000":0:4
|
|
|
|
|
|
|
|
Check one and zeros padding #4 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"DABBAD00808000":0:5
|
|
|
|
|
|
|
|
Check one and zeros padding #5 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"800000":0:0
|
|
|
|
|
|
|
|
Check one and zeros padding #6 (missing one)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"DABBAD0000":POLARSSL_ERR_CIPHER_INVALID_PADDING:4
|
|
|
|
|
|
|
|
Check one and zeros padding #7 (overlong)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ONE_AND_ZEROS
|
2013-07-26 10:46:02 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ONE_AND_ZEROS:"0000000000":POLARSSL_ERR_CIPHER_INVALID_PADDING:4
|
2013-07-26 12:55:18 +00:00
|
|
|
|
|
|
|
Check zeros and len padding #1 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
|
2013-07-26 12:55:18 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS_AND_LEN:"DABBAD0001":0:4
|
|
|
|
|
|
|
|
Check zeros and len padding #2 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
|
2013-07-26 12:55:18 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS_AND_LEN:"DABBAD000002":0:4
|
|
|
|
|
|
|
|
Check zeros and len padding #3 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
|
2013-07-26 12:55:18 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS_AND_LEN:"DABBAD000003":0:3
|
|
|
|
|
|
|
|
Check zeros and len padding #4 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
|
2013-07-26 12:55:18 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS_AND_LEN:"000003":0:0
|
|
|
|
|
|
|
|
Check zeros and len padding #5 (overlong)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
|
2013-07-26 12:55:18 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS_AND_LEN:"000004":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
|
|
|
|
|
|
|
Check zeros and len padding #6 (not enough zeros)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS_AND_LEN
|
2013-07-26 12:55:18 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS_AND_LEN:"DABBAD000004":POLARSSL_ERR_CIPHER_INVALID_PADDING:0
|
2013-07-26 14:05:14 +00:00
|
|
|
|
|
|
|
Check zeros padding #1 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS
|
2013-07-26 14:05:14 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS:"DABBAD00":0:3
|
|
|
|
|
|
|
|
Check zeros padding #2 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS
|
2013-07-26 14:05:14 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS:"DABBAD0000":0:3
|
|
|
|
|
|
|
|
Check zeros padding #3 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS
|
2013-07-26 14:05:14 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS:"DABBAD":0:3
|
|
|
|
|
|
|
|
Check zeros padding #4 (correct)
|
2013-09-19 16:09:14 +00:00
|
|
|
depends_on:POLARSSL_CIPHER_PADDING_ZEROS
|
2013-07-26 14:05:14 +00:00
|
|
|
check_padding:POLARSSL_PADDING_ZEROS:"000000":0:0
|
|
|
|
|
|
|
|
Check no padding #1 (correct by definition)
|
|
|
|
check_padding:POLARSSL_PADDING_NONE:"DABBAD00":0:4
|
|
|
|
|
|
|
|
Check no padding #2 (correct by definition)
|
|
|
|
check_padding:POLARSSL_PADDING_NONE:"DABBAD0001":0:5
|
|
|
|
|
|
|
|
Check no padding #3 (correct by definition)
|
|
|
|
check_padding:POLARSSL_PADDING_NONE:"":0:0
|