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