1Cipher list 2mbedtls_cipher_list: 3 4Cipher null/uninitialised arguments 5cipher_null_args: 6 7Set padding with AES-CBC 8depends_on:MBEDTLS_AES_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7 9set_padding:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_PADDING_PKCS7:0 10 11Set padding with AES-CFB 12depends_on:MBEDTLS_AES_C:MBEDTLS_CIPHER_MODE_CFB 13set_padding:MBEDTLS_CIPHER_AES_128_CFB128:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 14 15Set padding with AES-CTR 16depends_on:MBEDTLS_AES_C:MBEDTLS_CIPHER_MODE_CTR 17set_padding:MBEDTLS_CIPHER_AES_128_CTR:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 18 19Set padding with CAMELLIA-CBC 20depends_on:MBEDTLS_CAMELLIA_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7 21set_padding:MBEDTLS_CIPHER_CAMELLIA_128_CBC:MBEDTLS_PADDING_PKCS7:0 22 23Set padding with CAMELLIA-CFB 24depends_on:MBEDTLS_CAMELLIA_C:MBEDTLS_CIPHER_MODE_CFB 25set_padding:MBEDTLS_CIPHER_CAMELLIA_128_CFB128:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 26 27Set padding with CAMELLIA-CTR 28depends_on:MBEDTLS_CAMELLIA_C:MBEDTLS_CIPHER_MODE_CTR 29set_padding:MBEDTLS_CIPHER_CAMELLIA_128_CTR:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 30 31Set padding with DES-CBC 32depends_on:MBEDTLS_DES_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7 33set_padding:MBEDTLS_CIPHER_DES_CBC:MBEDTLS_PADDING_PKCS7:0 34 35Set padding with BLOWFISH-CBC 36depends_on:MBEDTLS_BLOWFISH_C:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_CIPHER_PADDING_PKCS7 37set_padding:MBEDTLS_CIPHER_BLOWFISH_CBC:MBEDTLS_PADDING_PKCS7:0 38 39Set padding with BLOWFISH-CFB 40depends_on:MBEDTLS_BLOWFISH_C:MBEDTLS_CIPHER_MODE_CFB 41set_padding:MBEDTLS_CIPHER_BLOWFISH_CFB64:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 42 43Set padding with BLOWFISH-CTR 44depends_on:MBEDTLS_BLOWFISH_C:MBEDTLS_CIPHER_MODE_CTR 45set_padding:MBEDTLS_CIPHER_BLOWFISH_CTR:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 46 47Set padding with NULL 48depends_on:MBEDTLS_CIPHER_NULL_CIPHER 49set_padding:MBEDTLS_CIPHER_NULL:MBEDTLS_PADDING_PKCS7:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA 50 51Set non-existent padding with AES-CBC 52depends_on:MBEDTLS_AES_C:MBEDTLS_CIPHER_MODE_CBC 53set_padding:MBEDTLS_CIPHER_AES_128_CBC:-1:MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE 54 55Set non-existent padding with CAMELLIA-CBC 56depends_on:MBEDTLS_CAMELLIA_C:MBEDTLS_CIPHER_MODE_CBC 57set_padding:MBEDTLS_CIPHER_CAMELLIA_128_CBC:-1:MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE 58 59Set non-existent padding with DES-CBC 60depends_on:MBEDTLS_DES_C:MBEDTLS_CIPHER_MODE_CBC 61set_padding:MBEDTLS_CIPHER_DES_CBC:-1:MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE 62 63Set non-existent padding with BLOWFISH-CBC 64depends_on:MBEDTLS_BLOWFISH_C:MBEDTLS_CIPHER_MODE_CBC 65set_padding:MBEDTLS_CIPHER_BLOWFISH_CBC:-1:MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE 66 67Check PKCS padding #1 (correct) 68depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 69check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD0004040404":0:4 70 71Check PKCS padding #2 (correct) 72depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 73check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD0001":0:4 74 75Check PKCS padding #3 (correct) 76depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 77check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD000101":0:5 78 79Check PKCS padding #4 (correct) 80depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 81check_padding:MBEDTLS_PADDING_PKCS7:"030303":0:0 82 83Check PKCS padding #5 (null padding) 84depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 85check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD0000":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 86 87Check PKCS padding #6 (too few padding bytes) 88depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 89check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD0002":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 90 91Check PKCS padding #7 (non-uniform padding bytes #1) 92depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 93check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00030203":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 94 95Check PKCS padding #7 (non-uniform padding bytes #2) 96depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 97check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00030103":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 98 99Check PKCS padding #7 (non-uniform padding bytes #3) 100depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 101check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00030703":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 102 103Check PKCS padding #7 (non-uniform padding bytes #4) 104depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 105check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00030b03":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 106 107Check PKCS padding #7 (non-uniform padding bytes #5) 108depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 109check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00031303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 110 111Check PKCS padding #7 (non-uniform padding bytes #6) 112depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 113check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00032303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 114 115Check PKCS padding #7 (non-uniform padding bytes #7) 116depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 117check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00034203":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 118 119Check PKCS padding #7 (non-uniform padding bytes #8) 120depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 121check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00038303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 122 123Check PKCS padding #7 (non-uniform padding bytes #9) 124depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 125check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00020303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 126 127Check PKCS padding #7 (non-uniform padding bytes #10) 128depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 129check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00010303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 130 131Check PKCS padding #7 (non-uniform padding bytes #11) 132depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 133check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00070303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 134 135Check PKCS padding #7 (non-uniform padding bytes #12) 136depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 137check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD000b0303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 138 139Check PKCS padding #7 (non-uniform padding bytes #13) 140depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 141check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00130303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 142 143Check PKCS padding #7 (non-uniform padding bytes #14) 144depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 145check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00230303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 146 147Check PKCS padding #7 (non-uniform padding bytes #15) 148depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 149check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00420303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 150 151Check PKCS padding #7 (non-uniform padding bytes #16) 152depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 153check_padding:MBEDTLS_PADDING_PKCS7:"DABBAD00830303":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 154 155Check PKCS padding #8 (overlong) 156depends_on:MBEDTLS_CIPHER_PADDING_PKCS7 157check_padding:MBEDTLS_PADDING_PKCS7:"040404":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 158 159Check one and zeros padding #1 (correct) 160depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 161check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"DABBAD0080":0:4 162 163Check one and zeros padding #2 (correct) 164depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 165check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"DABBAD008000":0:4 166 167Check one and zeros padding #3 (correct) 168depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 169check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"DABBAD00800000":0:4 170 171Check one and zeros padding #4 (correct) 172depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 173check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"DABBAD00808000":0:5 174 175Check one and zeros padding #5 (correct) 176depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 177check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"800000":0:0 178 179Check one and zeros padding #6 (missing one) 180depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 181check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"DABBAD0000":MBEDTLS_ERR_CIPHER_INVALID_PADDING:4 182 183Check one and zeros padding #7 (overlong) 184depends_on:MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS 185check_padding:MBEDTLS_PADDING_ONE_AND_ZEROS:"0000000000":MBEDTLS_ERR_CIPHER_INVALID_PADDING:4 186 187Check zeros and len padding #1 (correct) 188depends_on:MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 189check_padding:MBEDTLS_PADDING_ZEROS_AND_LEN:"DABBAD0001":0:4 190 191Check zeros and len padding #2 (correct) 192depends_on:MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 193check_padding:MBEDTLS_PADDING_ZEROS_AND_LEN:"DABBAD000002":0:4 194 195Check zeros and len padding #3 (correct) 196depends_on:MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 197check_padding:MBEDTLS_PADDING_ZEROS_AND_LEN:"DABBAD000003":0:3 198 199Check zeros and len padding #4 (correct) 200depends_on:MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 201check_padding:MBEDTLS_PADDING_ZEROS_AND_LEN:"000003":0:0 202 203Check zeros and len padding #5 (overlong) 204depends_on:MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 205check_padding:MBEDTLS_PADDING_ZEROS_AND_LEN:"000004":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 206 207Check zeros and len padding #6 (not enough zeros) 208depends_on:MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN 209check_padding:MBEDTLS_PADDING_ZEROS_AND_LEN:"DABBAD000004":MBEDTLS_ERR_CIPHER_INVALID_PADDING:0 210 211Check zeros padding #1 (correct) 212depends_on:MBEDTLS_CIPHER_PADDING_ZEROS 213check_padding:MBEDTLS_PADDING_ZEROS:"DABBAD00":0:3 214 215Check zeros padding #2 (correct) 216depends_on:MBEDTLS_CIPHER_PADDING_ZEROS 217check_padding:MBEDTLS_PADDING_ZEROS:"DABBAD0000":0:3 218 219Check zeros padding #3 (correct) 220depends_on:MBEDTLS_CIPHER_PADDING_ZEROS 221check_padding:MBEDTLS_PADDING_ZEROS:"DABBAD":0:3 222 223Check zeros padding #4 (correct) 224depends_on:MBEDTLS_CIPHER_PADDING_ZEROS 225check_padding:MBEDTLS_PADDING_ZEROS:"000000":0:0 226 227Check no padding #1 (correct by definition) 228check_padding:MBEDTLS_PADDING_NONE:"DABBAD00":0:4 229 230Check no padding #2 (correct by definition) 231check_padding:MBEDTLS_PADDING_NONE:"DABBAD0001":0:5 232 233Check no padding #3 (correct by definition) 234check_padding:MBEDTLS_PADDING_NONE:"":0:0 235