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