Closed QuLogic closed 4 years ago
There are some comments about big-endian machines in cipher.go, but its handling may be incomplete? See this build for s390x, which fails in cipher_test.go:
cipher.go
cipher_test.go
--- FAIL: TestCipher (0.00s) --- FAIL: TestCipher/simple (0.00s) cipher_test.go:62: Cipher([72 101 108 108 111 44 32 88 79 82 33], [1 2 3 4]): act: [76 102 110 109 107 47 34 89 78 80 34] exp: [73 103 111 104 110 46 35 92 78 80 34] --- FAIL: TestCipher/#01 (0.00s) cipher_test.go:62: Cipher([121 57 169 1 1 198 14 252], [8 81 74 48]): act: [73 115 248 9 49 140 95 244] exp: [113 104 227 49 9 151 68 204] --- FAIL: TestCipher/#02 (0.00s) cipher_test.go:62: Cipher([87 219 0 126 150 80 119 69 189 74 7 100 237 135 23 162], [80 191 251 95]): act: [8 32 191 46 201 171 200 21 226 177 184 52 178 124 168 242] exp: [7 100 251 33 198 239 140 26 237 245 252 59 189 56 236 253] --- FAIL: TestCipher/#04 (0.00s) cipher_test.go:62: Cipher([223 181 184 105 104 25 57 105 57], [38 64 216 50]): act: [237 109 248 79 90 193 121 79 31] exp: [249 245 96 91 78 89 225 91 31] --- FAIL: TestCipher/#05 (0.00s) cipher_test.go:62: Cipher([163 56 126 212 172 156 218 176 210 175 143 203 81 184 110 77 146], [112 151 241 231]): act: [68 201 233 164 75 109 77 192 53 94 24 187 182 73 249 61 226] exp: [211 175 143 51 220 11 43 87 162 56 126 44 33 47 159 170 226] --- FAIL: TestCipher/#07 (0.00s) cipher_test.go:62: Cipher([213 157 13 209 80 160 32 137 120 196], [29 226 138 214]): act: [3 23 239 204 134 42 194 148 101 38] exp: [200 127 135 7 77 66 170 95 101 38] --- FAIL: TestCipher/#08 (0.00s) cipher_test.go:62: Cipher([202 223 114 164 146 121 207 253 109 194 129 198 64 242 226 148 76 222], [73 161 62 211]): act: [25 225 211 237 65 71 110 180 190 252 32 143 147 204 67 221 5 127] exp: [131 126 76 119 219 216 241 46 36 99 191 21 9 83 220 71 5 127] --- FAIL: TestCipher/#10 (0.00s) cipher_test.go:62: Cipher([206 15 74 8 99 55 90 157 179 246 127], [202 30 59 130]): act: [76 52 84 194 225 12 68 87 121 232 68] exp: [4 17 113 138 169 41 97 31 121 232 68] --- FAIL: TestCipher/#11 (0.00s) cipher_test.go:62: Cipher([136 160 120 97 17 97 215 203 102 142 205 185 50 225 255 55 51 152 44], [140 70 14 238]): act: [102 174 62 237 255 111 145 71 136 128 139 53 220 239 185 187 191 222 34] exp: [4 230 118 143 157 39 217 37 234 200 195 87 190 167 241 217 191 222 34] --- FAIL: TestCipher/#13 (0.00s) cipher_test.go:62: Cipher([207 181 93 119 9 64 222 85 99 115 164 221], [103 110 58 13]): act: [194 143 51 16 4 122 176 50 4 29 158 208] exp: [168 219 103 122 110 46 228 88 4 29 158 208] --- FAIL: TestCipher/#14 (0.00s) cipher_test.go:62: Cipher([214 111 18 128 200 203 119 168 81 54 179 240 3 250 180 136 125 173 84 141], [231 191 230 72]): act: [158 137 173 103 128 45 200 79 25 208 12 23 75 28 11 111 154 18 178 197] exp: [49 208 244 200 47 116 145 224 182 137 85 184 228 69 82 192 154 18 178 197] --- FAIL: TestCipher/#16 (0.00s) cipher_test.go:62: Cipher([3 144 13 75 148 231 118 169 57 83 3 40 131], [73 45 169 0]): act: [3 57 32 2 148 78 91 224 112 126 170 40 202] exp: [74 189 164 75 221 202 223 169 112 126 170 40 202] --- FAIL: TestCipher/#17 (0.00s) cipher_test.go:62: Cipher([178 166 195 231 61 122 111 18 238 48 201 221 6 204 52 229 163 137 57 118 235], [29 229 134 77]): act: [255 32 38 250 112 252 138 15 163 182 44 192 75 74 209 248 190 108 191 59 246] exp: [175 67 69 170 32 159 233 95 243 213 79 144 27 41 178 168 190 108 191 59 246] --- FAIL: TestCipher/#19 (0.00s) cipher_test.go:62: Cipher([12 252 124 251 64 183 119 40 66 47 108 38 207 104], [152 124 107 64]): act: [76 151 0 99 0 220 11 176 218 83 7 102 87 20] exp: [148 128 23 187 216 203 28 104 218 83 7 102 87 20] --- FAIL: TestCipher/#20 (0.00s) cipher_test.go:62: Cipher([252 254 157 102 10 188 101 115 96 235 18 157 225 27 215 10 245 235 143 227 80 175], [44 39 166 236]): act: [16 88 186 74 230 26 66 95 140 77 53 177 13 189 240 38 217 204 41 15 124 136] exp: [208 217 59 138 38 155 195 159 76 204 180 113 205 60 113 230 217 204 41 15 124 136] --- FAIL: TestCipher/#22 (0.00s) cipher_test.go:62: Cipher([6 73 124 250 81 113 35 110 254 45 113 215 107 93 255], [51 82 175 155]): act: [157 230 46 201 202 222 113 93 205 127 222 76 88 15 80] exp: [53 27 211 97 98 35 140 245 205 127 222 76 88 15 80] --- FAIL: TestCipher/#23 (0.00s) cipher_test.go:62: Cipher([64 125 197 170 182 15 70 181 104 54 70 245 178 135 50 183 199 80 211 81 160 138 80], [114 67 216 228]): act: [164 165 134 216 82 215 5 199 140 238 5 135 86 95 113 197 181 19 11 181 210 201 136] exp: [50 62 29 78 196 76 158 81 26 117 158 17 192 196 234 83 181 19 11 181 210 201 136] --- FAIL: TestCipher/#25 (0.00s) cipher_test.go:62: Cipher([170 32 95 196 233 150 139 78 86 63 160], [220 150 91 162]): act: [60 123 253 102 178 0 87 236 13 169 124] exp: [60 123 253 24 127 205 41 146 192 100 2] --- FAIL: TestCipher/#26 (0.00s) cipher_test.go:62: Cipher([11 142 72 188 24 138 50 27 22 211 33 59 237 105 100 117 18 122 32], [175 193 163 104]): act: [202 45 32 212 187 75 157 115 181 18 142 83 78 168 203 29 177 187 143] exp: [202 45 32 19 217 41 90 180 215 112 73 148 44 202 12 218 211 217 72] --- FAIL: TestCipher/#28 (0.00s) cipher_test.go:62: Cipher([222 224 92 252 58 66 228 19 2 22 229 84], [12 247 21 196]): act: [41 245 152 56 47 181 232 215 23 225 233 88] exp: [41 245 152 240 205 87 32 31 245 3 33 88] --- FAIL: TestCipher/#29 (0.00s) cipher_test.go:62: Cipher([230 56 215 214 21 197 11 239 87 110 235 25 179 177 91 44 43 69 77 252], [239 43 24 22]): act: [205 32 193 192 13 238 228 249 79 69 4 15 171 154 180 58 51 110 162 19] exp: [205 32 193 57 62 221 29 0 124 118 253 246 152 169 77 195 0 93 91 19] --- FAIL: TestCipher/#31 (0.00s) cipher_test.go:62: Cipher([113 203 227 76 146 205 75 90 10 220 129 229 195], [62 17 210 114]): act: [96 25 145 62 64 220 117 40 216 205 191 219 210] exp: [96 25 145 114 131 31 57 100 27 14 243 219 210] --- FAIL: TestCipher/#32 (0.00s) cipher_test.go:62: Cipher([27 193 185 90 158 105 58 195 202 188 73 8 137 168 164 43 247 226 35 117 182], [121 232 89 140]): act: [243 152 53 214 199 129 67 79 147 84 48 132 208 64 221 167 174 10 90 12 94] exp: [243 152 53 35 118 48 182 186 34 229 197 113 97 241 40 82 31 187 175 12 94] --- FAIL: TestCipher/#34 (0.00s) cipher_test.go:62: Cipher([192 138 174 210 245 109 111 38 100 144 54 51 92 8], [129 191 236 30]): act: [127 102 176 204 25 210 238 56 136 47 183 178 227 228] exp: [127 102 176 83 74 129 113 167 219 124 40 178 227 228] --- FAIL: TestCipher/#35 (0.00s) cipher_test.go:62: Cipher([58 83 70 51 92 59 55 7 238 146 23 63 26 122 51 5 194 147 63 120 233 149], [218 143 29 246]): act: [181 78 176 197 65 180 237 241 243 29 205 201 7 245 233 243 223 28 229 162 102 136] exp: [181 78 176 233 211 38 193 221 97 143 225 229 149 103 197 223 77 142 201 162 102 136] --- FAIL: TestCipher/#37 (0.00s) cipher_test.go:62: Cipher([212 85 17 3 220 51 86 28 46 128 69 182 182 119 15], [160 52 152 253]): act: [224 205 236 254 68 7 246 225 182 180 229 22 130 239 242] exp: [224 205 236 163 232 171 171 188 26 24 184 22 130 239 242] --- FAIL: TestCipher/#38 (0.00s) cipher_test.go:62: Cipher([53 154 16 72 132 105 157 98 128 32 23 62 219 204 67 152 185 119 228 86 228 136 89], [100 132 4 102]): act: [177 158 118 46 128 237 249 4 132 164 115 88 223 72 39 254 189 243 128 50 96 140 63] exp: [177 158 118 44 0 109 251 6 4 36 113 90 95 200 37 252 61 115 130 50 96 140 63] --- FAIL: TestCipher/#40 (0.00s) cipher_test.go:62: Cipher([124 26 177 99 42 153 90 84 245 85 164 82 17 112 160 0], [80 120 101 182]): act: [4 127 7 213 79 225 10 226 144 45 244 2 105 21 22 80] exp: [4 127 7 51 82 252 236 4 141 48 18 2 105 21 22 80] --- FAIL: TestCipher/#41 (0.00s) cipher_test.go:62: Cipher([101 7 48 170 109 96 80 165 89 89 16 40 54 255 243 211 126 71 115 52 14 89 46 86], [149 31 249 101]): act: [122 254 85 207 148 127 197 192 160 70 133 77 207 224 102 182 135 88 230 161 17 160 75 195] exp: [122 254 85 63 114 153 53 48 70 160 117 189 41 6 150 70 97 190 22 161 17 160 75 195] --- FAIL: TestCipher/#43 (0.00s) cipher_test.go:62: Cipher([133 42 30 161 16 169 162 151 33 174 227 35 213 163 6 222 22], [36 206 204 135]): act: [75 230 153 38 220 103 134 16 237 96 199 7 27 111 129 250 216] exp: [75 230 153 133 222 101 37 179 239 98 100 7 27 111 129 250 216] --- FAIL: TestCipher/#44 (0.00s) cipher_test.go:62: Cipher([186 220 71 170 135 244 137 99 93 47 182 11 255 98 186 103 245 37 121 153 106 240 161 241 166], [251 205 135 4]): act: [119 91 67 174 0 57 114 103 218 226 77 15 120 175 65 99 114 232 130 98 167 119 165 10 107] exp: [119 91 67 81 74 115 141 152 144 168 178 240 50 229 190 156 56 162 125 98 167 119 165 10 107] --- FAIL: TestCipher/#46 (0.00s) cipher_test.go:62: Cipher([49 161 211 7 68 183 2 37 54 209 82 109 65 101 156 45 204 139], [57 194 106 236]): act: [243 203 63 235 46 117 59 201 92 19 107 84 131 15 112 20 14 225] exp: [243 203 63 62 134 221 238 28 244 187 190 84 131 15 112 20 14 225] --- FAIL: TestCipher/#47 (0.00s) cipher_test.go:62: Cipher([252 15 138 112 113 54 216 27 40 39 161 88 253 115 134 165 55 81 68 113 194 19 168 200 89 1], [103 72 224 38]): act: [180 239 172 86 145 126 191 61 200 111 198 126 29 59 225 131 215 25 35 22 138 243 142 175 17 225] exp: [180 239 172 23 57 214 254 124 96 199 135 63 181 147 160 194 127 177 98 22 138 243 142 175 17 225] --- FAIL: TestCipher/#49 (0.00s) cipher_test.go:62: Cipher([12 98 8 64 236 77 249 148 50 226], [185 225 227 104]): act: [239 10 96 163 13 244 145 119 211 91] exp: [239 10 177 161 15 37 64 117 209 138] --- FAIL: TestCipher/#50 (0.00s) cipher_test.go:62: Cipher([227 63 18 110 196 12 87 46 132 28 38 24 212 157 78 176 152 185], [83 59 31 74]): act: [252 117 88 113 255 95 29 49 191 79 108 7 239 206 4 175 163 234] exp: [252 117 65 85 219 70 4 21 155 86 117 35 203 215 29 139 135 243] --- FAIL: TestCipher/#52 (0.00s) cipher_test.go:62: Cipher([138 182 208 182 80 229 153 87 111 43 217], [10 18 76 156]): act: [198 42 76 250 66 239 5 27 125 33 211] exp: [198 42 218 164 28 121 147 69 35 183 211] --- FAIL: TestCipher/#53 (0.00s) cipher_test.go:62: Cipher([106 15 145 31 209 189 130 83 186 194 114 148 44 189 248 134 79 55 71], [255 127 9 216]): act: [99 215 73 22 174 66 90 90 197 61 170 157 83 66 32 143 48 200 184] exp: [99 215 110 96 216 101 125 44 179 26 141 235 37 101 7 249 70 239 184] --- FAIL: TestCipher/#55 (0.00s) cipher_test.go:62: Cipher([68 229 241 250 243 229 38 205 42 6 177 87], [82 114 114 175]): act: [54 74 94 136 129 183 137 191 88 84 227 37] exp: [54 74 163 136 129 74 116 191 88 169 227 37] --- FAIL: TestCipher/#56 (0.00s) cipher_test.go:62: Cipher([157 56 86 89 87 201 206 102 60 41 87 102 192 224 228 100 151 28 98 130], [183 13 76 12]): act: [209 52 90 21 90 126 194 42 49 158 91 42 205 87 232 40 154 171 213 143] exp: [209 52 225 84 27 197 121 107 112 37 224 107 140 236 83 105 219 16 213 143] --- FAIL: TestCipher/#58 (0.00s) cipher_test.go:62: Cipher([210 178 199 69 245 160 51 206 225 66 156 91 133], [85 129 238 40]): act: [60 154 239 171 116 245 27 32 96 23 201 218 107] exp: [60 154 146 196 27 136 102 79 15 106 201 218 107] --- FAIL: TestCipher/#59 (0.00s) cipher_test.go:62: Cipher([82 120 137 60 67 165 150 141 156 40 56 75 122 190 141 7 43 166 144 137 201], [56 104 92 177]): act: [14 201 56 96 43 157 39 209 244 16 137 23 18 134 60 91 67 158 168 225 149] exp: [14 201 177 84 31 20 174 229 192 153 0 35 38 15 181 111 119 23 168 225 149] --- FAIL: TestCipher/#61 (0.00s) cipher_test.go:62: Cipher([165 133 18 248 115 139 222 53 183 177 94 243 89 221], [46 135 83 203]): act: [246 78 217 171 244 165 21 102 48 159 112 116 10 22] exp: [246 78 60 127 32 64 240 178 228 122 112 116 10 22] --- FAIL: TestCipher/#62 (0.00s) cipher_test.go:62: Cipher([30 214 151 114 193 164 183 76 191 83 88 110 93 240 67 105 179 95 31 220 163 144], [86 88 114 37]): act: [108 243 178 0 153 242 146 62 231 5 125 28 5 166 102 27 235 9 73 132 209 181] exp: [108 243 193 42 179 129 225 20 205 118 14 54 47 213 21 49 193 122 73 132 209 181] --- FAIL: TestCipher/#64 (0.00s) cipher_test.go:62: Cipher([47 51 227 103 203 133 192 26 145 75 58 81 36 4 173], [106 152 181 176]): act: [154 131 83 210 83 239 112 175 9 33 80 201 145 180 199] exp: [154 131 137 255 126 53 170 130 36 251 80 201 145 180 199] --- FAIL: TestCipher/#65 (0.00s) cipher_test.go:62: Cipher([195 162 17 212 191 253 88 2 238 67 179 251 7 69 28 116 82 78 200 180 237 219 180], [28 163 61 214]): act: [254 116 199 233 28 225 142 63 77 95 101 198 164 89 202 73 241 82 212 23 208 13 168] exp: [254 116 13 119 130 43 68 161 211 149 175 88 58 147 0 215 111 152 212 23 208 13 168] --- FAIL: TestCipher/#67 (0.00s) cipher_test.go:62: Cipher([45 69 70 97 105 57 255 163 177 171 155 139 161 209 166 55], [231 201 133 204]): act: [168 137 138 228 160 222 51 38 120 76 124 66 36 29 65 254] exp: [168 137 161 168 236 245 24 106 52 103 124 66 36 29 65 254] --- FAIL: TestCipher/#68 (0.00s) cipher_test.go:62: Cipher([146 38 6 202 160 69 48 133 227 95 47 224 189 45 225 41 209 209 133 106 222 151 90 50], [129 166 41 101]): act: [187 67 99 227 6 196 85 172 69 222 74 201 27 172 132 0 119 80 4 204 247 242 219 148] exp: [187 67 135 108 137 32 177 35 202 58 174 70 148 72 96 143 248 180 4 204 247 242 219 148] --- FAIL: TestCipher/#70 (0.00s) cipher_test.go:62: Cipher([26 42 0 161 178 78 98 189 167 141 11 113 160 212 1 71 1], [111 205 175 26]): act: [181 48 26 14 127 33 120 18 106 226 100 188 15 206 110 138 174] exp: [181 48 111 108 29 84 13 112 8 151 100 188 15 206 110 138 174] --- FAIL: TestCipher/#71 (0.00s) cipher_test.go:62: Cipher([112 35 49 221 168 230 120 216 244 118 220 201 22 152 218 22 136 198 16 236 12 177 217 184 251], [205 69 223 222]): act: [175 253 239 2 237 43 166 7 177 187 2 22 83 85 4 201 205 11 221 169 211 111 20 253 36] exp: [175 253 252 152 119 56 181 157 43 168 17 140 201 70 23 83 87 24 221 169 211 111 20 253 36] --- FAIL: TestCipher/#73 (0.00s) cipher_test.go:62: Cipher([160 19 55 174 91 47 92 133 74], [130 195 8 119]): act: [215 100 63 109 217 88 84 70 200] exp: [215 145 244 166 44 173 159 141 61] --- FAIL: TestCipher/#74 (0.00s) cipher_test.go:62: Cipher([121 186 189 46 82 45 217 47 71 24 205 159 140 100 154 194 38], [116 92 162 250]): act: [131 64 31 114 38 215 123 115 51 226 111 195 248 158 56 158 82] exp: [131 206 225 140 168 89 133 141 189 108 145 61 118 16 198 96 220] --- FAIL: TestCipher/#76 (0.00s) cipher_test.go:62: Cipher([143 103 205 146 99 105 87 138 232 118], [18 121 13 197]): act: [74 162 192 235 113 172 90 243 250 100] exp: [74 117 180 159 166 123 46 135 45 100] --- FAIL: TestCipher/#77 (0.00s) cipher_test.go:62: Cipher([110 217 205 169 53 40 26 73 14 92 152 73 80 236 122 78 147 5], [32 210 115 166]): act: [200 127 190 123 21 142 105 155 46 250 235 155 112 74 9 156 179 37] exp: [200 249 31 218 147 8 200 58 168 124 74 58 246 204 168 61 53 37] --- FAIL: TestCipher/#79 (0.00s) cipher_test.go:62: Cipher([37 8 226 111 148 41 97 254 208 227 239], [238 213 42 123]): act: [94 115 200 186 122 82 75 43 62 13 58] exp: [94 230 55 69 239 199 180 212 171 13 58] --- FAIL: TestCipher/#80 (0.00s) cipher_test.go:62: Cipher([150 37 13 114 49 85 170 57 168 174 133 19 28 37 92 50 191 64 107], [100 125 225 163]): act: [53 134 236 15 85 246 75 68 204 13 100 110 120 134 189 79 219 36 22] exp: [53 65 112 147 146 49 215 216 11 202 248 242 191 65 33 211 28 36 22] --- FAIL: TestCipher/#82 (0.00s) cipher_test.go:62: Cipher([112 173 236 69 5 238 102 179 161 209 183 191], [233 197 139 17]): act: [97 188 103 128 236 255 237 118 72 56 114 52] exp: [97 68 41 206 20 7 163 56 176 56 114 52] --- FAIL: TestCipher/#83 (0.00s) cipher_test.go:62: Cipher([229 58 213 86 213 110 88 7 1 123 179 11 113 190 148 232 248 106 175 20], [150 232 184 214]): act: [51 236 109 190 67 184 224 239 151 173 11 227 231 104 44 0 110 252 71 172] exp: [51 172 61 238 3 248 176 191 215 237 91 179 167 40 124 80 46 252 71 172] --- FAIL: TestCipher/#85 (0.00s) cipher_test.go:62: Cipher([35 150 60 116 93 123 75 161 120 124 235 48 114], [143 23 98 180]): act: [151 34 94 99 210 207 41 182 247 243 252 82 198] exp: [151 25 43 22 233 244 92 195 204 243 252 82 198] --- FAIL: TestCipher/#86 (0.00s) cipher_test.go:62: Cipher([111 110 170 213 6 76 128 41 210 155 134 38 107 135 249 49 66 162 116 245 25], [243 40 29 140]): act: [227 226 183 253 245 192 157 1 33 23 155 14 152 11 228 25 177 81 92 232 149] exp: [227 157 130 200 138 191 168 52 94 104 174 59 231 116 209 44 206 81 92 232 149] --- FAIL: TestCipher/#88 (0.00s) cipher_test.go:62: Cipher([98 92 246 36 176 90 72 215 60 215 120 63 223 20], [149 74 3 236]): act: [142 176 245 110 37 182 75 157 169 66 50 60 51 129] exp: [142 201 188 39 92 207 2 212 208 66 50 60 51 129] --- FAIL: TestCipher/#89 (0.00s) cipher_test.go:62: Cipher([26 147 14 154 149 68 36 239 240 48 227 241 83 87 222 76 25 152 63 72 70 25], [160 233 226 182]): act: [172 37 236 115 53 242 198 6 80 134 1 24 243 225 60 165 185 56 214 170 240 185] exp: [172 51 231 120 35 228 205 13 70 144 10 19 229 247 55 174 175 56 214 170 240 185] --- FAIL: TestCipher/#91 (0.00s) cipher_test.go:62: Cipher([199 147 173 254 1 129 5 13 248 184 69 206 100 138 102], [223 83 47 120]): act: [191 235 130 173 222 249 42 94 39 103 22 225 28 85 53] exp: [191 76 254 209 121 94 86 34 128 103 22 225 28 85 53] --- FAIL: TestCipher/#92 (0.00s) cipher_test.go:62: Cipher([177 12 131 236 200 99 116 164 248 171 248 237 204 48 54 84 186 253 61 204 125 233 199], [122 10 157 29]): act: [172 17 30 230 178 126 233 174 130 182 101 231 182 45 171 94 192 135 55 81 96 147 205] exp: [172 118 137 113 213 25 126 57 229 209 242 112 209 74 60 201 167 135 55 81 96 147 205] --- FAIL: TestCipher/#94 (0.00s) cipher_test.go:62: Cipher([194 165 226 230 121 159 138 47 128 0 212 41 34 130 229 104], [99 174 66 42]): act: [232 143 160 72 26 181 200 129 227 99 122 107 8 225 75 42] exp: [232 198 76 164 83 252 36 109 170 99 122 107 8 225 75 42] --- FAIL: TestCipher/#95 (0.00s) cipher_test.go:62: Cipher([87 121 144 10 214 136 27 120 148 110 117 13 119 119 243 63 47 1 58 117 193 150 21 99], [44 14 64 185]): act: [238 192 208 4 250 49 91 118 184 215 53 3 91 206 179 49 3 45 52 53 120 186 27 35] exp: [238 85 158 74 111 164 21 56 45 66 123 77 206 91 253 127 150 45 52 53 120 186 27 35] --- FAIL: TestCipherChops (0.00s) --- FAIL: TestCipherChops/8 (0.00s) cipher_test.go:94: unexpected Cipher([0:8]) = 7fa7735f87b905fe; want 1cbf6b3ce4a11d9d --- FAIL: TestCipherChops/16 (0.00s) cipher_test.go:94: unexpected Cipher([0:16]) = d8ebed5eef2a35c4074b9eff8bf04792; want 54f2f4d263332c488b52877307e95e1e --- FAIL: TestCipherChops/32 (0.00s) cipher_test.go:94: unexpected Cipher([0:32]) = 024653459ba813967b89ab761ebc528c44fd6436a5d73a0564d37d49b5623a57; want 063a2f419fd46f927ff5d7721ac02e8840811832a1ab460160af014db11e4653 --- FAIL: TestCipherChops/64 (0.00s) cipher_test.go:94: unexpected Cipher([0:64]) = ba8216d3039e906b20b1a67f8ebad1db04108b72172b46d10f3db703f3088504c12e52064df189ce334698268dac7b7c527127c6ef958da2db5a691ca7dc0c46; want 8a49dde333555b5b107a6d4fbe711aeb34db404227e08de13ff67c33c3c34e34f1e599367d3a42fe038d5316bd67b04c62baecf6df5e4692eb91a22c9717c776 --- FAIL: TestCipherChops/128 (0.00s) cipher_test.go:94: unexpected Cipher([0:128]) = 12d107a6fdd5fc3f647838785df59329ea7829498d83d108e253d22b41265fe07ed154aa62bc3eef240f225deb52f18bb5380f008665c7fd67624440ec4a0b7e8e5da7a7d5b27698647702c797ac4702786b8e22a8071458816eaccfe3ffd0f3a9d7201914425fa63861ee5f5c3ac9444bc46329b4dfa898bec6fce65a80686b; want fd7fa949127b52d08bd69697b25b3dc605d687a6622d7fe70dfd7cc4ae88f10f917ffa458d129000cba18cb204fc5f645a96a1ef69cb691288cceaaf03e4a59161f309483a1cd8778bd9ac287802e9ed97c520cd47a9bab76ec002200c517e1c46798ef6fbecf149d7cf40b0b39467aba46acdc65b71067751685209b52ec684 --- FAIL: TestCipherChops/256 (0.00s) cipher_test.go:94: unexpected Cipher([0:256]) = 2d6f0f8c2ebf9114503f31aa7d8fc4e9d861a7aab6ab87501ace835071310660fd624c319fad748f93c35c97c0824028967e343bbbb8d412b53a6dcb79eea441e1e4203618f5d49ffb397ee06ee1026f9e03cf7045d5f54113f4e2d3924e2d1799d284ca9314ca3fdb45a3549e640378d91339baf9116f7d808f144fa93c473112f5fee97229354c6b4f853f074bde757a7905cd87f79f4f0948d8fdb95bf4edfd5b88e6337df8fd0db1a5b0a3ffa1e026ccf0702a98380fb2ece1a95822672e39b7aad883a6fe5d2a07fd9ea061c1927f5ac399e36cfe7cbb78a5951dc6e0d383d556084631617088b95a416edb0c7e2e857b3a8eda71be12574b5f769aed21; want e8bbdb49eb6b45d195ebe56fb85b102c1db5736f737f5395df1a5795b4e5d2a538b698f45a79a04a56178852055694ed53aae0fe7e6c00d770eeb90ebc3a70842430f4f3dd21005a3eedaa25ab35d6aa5bd71bb580012184d6203616579af9d25c06500f56c01efa1e9177915bb0d7bd1cc7ed7f3cc5bbb8455bc08a6ce893f4d7212a2cb7fde189ae9b51fac29f0ab0bfadd10842234b8acc9c0c387c8f2028388f5c23f6a92c38c8657175662b7525e31824b5ef4cecca7738356c9df6b3ebfc637e1d46722a98efd3295b65b51557ba8e175c26b82ab97eac7150d8123416460182cd83e5b5b54d6d8e84ab0fd8bbeb51afff4b0ea57bd7839f9ab34e39e4 --- FAIL: TestCipherChops/512 (0.00s) cipher_test.go:94: unexpected Cipher([0:512]) = 70f12a0efbf8a8ac408ef0b695934d603088eb385655f1c5e6c53485ebe5fc47b0adfd998d0724df9c1608f7dd05f8270dc4c2dec13c94086d5cc67a9a4f9d21cc9c54eff4579c51eac68a8bd0f0f07c17e149e97018c2d8f9a6e570cda762765d36f18d375d75de8f64894c73f549915b03b964ebf60b90fd2e2615d79f38ca85e5ef932834f2d18b0a377850f539d163e65698e85aba35be8678590a2e9f68172618d57abe1c49bd3715f86aa2b595c6ed1ab504bf9ed3c5790fb7d0f542e41f80d3b3a74701c7f218e623eeda93359bdd6cd381ba7a03fa19e5a699f61dc148a64b58ec44ee93a4dc86d622272909ee985ee5e90712e66772ecaee70ce3609fdcff2533664f20b80285ca068611df97d855440d162425490e21969bc50d83d442c5b62624adaedd6aaa5405ef4d50be9e7948ca80913bf8559827dd5862b753d5cf69d6ca560e1b8cdd43245b73eccfd00e278efb8b8942c7f92ee5a55d2d44b6975ace9dd344e2268e791ad6a7f01c40b72862b1996bc65880b06bae2502404c5d2f79ea2c9f8d3f7aeaa9a81a50cb8b47fadc142c1a6cbe96ddca9701f3b99248a40e7aee9341b509f0425bd58da407492d5dac3d74e9455d73223c3a23f31fb2dfae5580eef1e38114ed0d12a17eea8a9b7b951afa968e613c800207bbf1936c518932812fd4ace98274f78f3965211f43d4a3a8d90f045d0dd38ee75c; want f0c3188e7bca9a2cc0bcc23615a17fe0b0bad9b8d667c34566f706056bd7cec7309fcf190d35165f1c243a775d37caa78df6f05e410ea688ed6ef4fa1a7dafa14cae666f7465aed16af4b80b50c2c2fc97d37b69f02af0587994d7f04d9550f6dd04c30db76f475e0f56bbccf3c77b11db318be46bc439107d1c149557ad0a4a05d7dd13a806c0510b3805f8d0c70b51e3d46418686888b53eb44ad98a1cade897142a55fa8c2ec93d052778ea90871546df2835848dac53454b3d3750c770649fb2e13327753347722ad4a36ee8a1b51bef5e53018848837a2bd72619c42f41c89479d86c76dc1324eeb456a2151b896eaa6c6569352066e740de2e673ed1e01feecda5b3547da03830b74a86b4235f17ea67c48d2416a5c93c13161bf73f035470f736a6169f2e5d5898d485dd7fd03eac4bc84ab2a3bb7867aaa75d6a5037d3e7fde956f8648e9bbeefc3a469416c4fe23ca70ec9b909c2f5cbae65976fadc484a5da4eafe1c46214bcf99ae495709c7285a8e283abeb466ab230eb9c1782c07e6faff9d81e1f0d0d486a299a28d04bb9757a5c261e9aec8ca45d4aa5337339a07a248e48dc13c1873b70c269e70d24357baddd9e0ff469776ff3a20e08a3732d805f2e67b26e71d1b3946d3f2021fed8b81bfba7287a16bc53bc0030353b71a15ed10900b3af549edb02f4c5bdb9e5132dc354919a598f366f8d53bcd5dc --- FAIL: TestCipherChops/1024 (0.00s) cipher_test.go:94: unexpected Cipher([0:1024]) = 28ad64f68a673bbdd84d1dd6a35d877954f857c9822260ccb3e1286068aa0b1f9c15129c335c01ff168fd3a926b7475c1dd466ffb08e458ea44baa469e61025b77e0093237675faf705d251b2bb7beb3d19596f92deac6f721429f1574a622f6768d93f08e78ee556e3658e219a86a5e18cdf0986971fad8183ea45ea519a4356f6bbe0a596975417c92c984db586cafc0b2ccbb36bcee61c0675629792438fcf79aa198be47314283beb59d9abcebb3206ccc3e07a2f47f73b55e87b2fc657d96292f05360ad76d3aa8075e9aaf7bebc826b6f640d0d096eb45ffb71b1aee3d916f2833ba6bee68586aab861c33fa225c21f2b8b4ee7ef1b394f3c8851e7fcd8adbaec4aa45d4e2d1ac875585cd48ec364e277f9d0b73c0edd5bf6f03ddcf73fc0ff1ec1565d2b500ca350ff521022759c2afa9a41538364e3b1b1444f12c3f647dd404f6efc3c92c854da63b5540f77a4fd6884b9cb5b9c8cc265132668627a23df670faadc09eef0c05a97ace33f157edc1a31208e4ef0742e0631d213ee446476bbaa59bd4aee4ca0194a9118edbc8355d60c8c566d2ee724379480d4d971437ab7050a8e63d83adaae7274d3cce69b7ce6f9bebe835d3248d4cc0795d1bf47dea0483386c06fdd51e08b28fa9c8a1dfac1b42e53a33889d29b67a3fe1de0cf52e54fb1c17bdd3d22d904721ab024e2881eb75473070cfc915845c10ec62971a292906dabfe4ff87985feadfbf8d632920aafe1641c062ebc8dba4c543bbf9d738f33715733e18d1c93ac08c09eaebead151050c2222c421e274cbde6596f9010e3da366934a2ed51008981c317f64004bcbc53a032bc4836d3cc62ff17599753762a5b8973b28407499ea3fa63c92367669aaaaa5ce26ea3348e70c271ff00b9e5b08406408e9ec726a14f52b26c7a89bab1d7ca2c486ef348eff864d359b479200c439a976e9a0bd20060dc2121b27e705c251f02ed7e4e9cde9d2e37f18b88cea2f8ec32e5bd458734e2b228146fc7d3151e8144043d96cf035a191724fccbec2d69530a2842b5b49bdb09378a00f70790c453c154b1ac4d50f4b5a9f1c0e536d0262c6271ceb0c77de3dfca11be05c3ec69a31e16c61c09f56db43e1d373b2da82fef8d537c612ae13f9f2404d290829ae2d66ed838887d3c98a0b5531d28ca04d7e39edb3d0cfa42a48d221d71bb83f26165c4f8caa5ec103ff3b5a08f784762e84553adc9e50d5ec25259430de31ab429fe61b92c571a900a041fac7faa996e3eaa7716614e8fdf3d12a632eca9770b95a559c4bdbd2171890889a4c46a54d99a2542f69cb2e4817adaf356d15300eb26a128a5c1e6176f2cd2768acc62e4a3a8f2ed162956d070c126aaf9727cd5925b233eee87da2cc601c5c9c1140d3a68ff47e9aa13b3e77640de1930d3c5e4ee656d1575f232e9634a92b4d; want f4ad642a56673b61044d1d0a7f5d87a588f857155e2260106fe128bcb4aa0bc340151240ef5c0123ca8fd375fab74780c1d466236c8e4552784baa9a42610287abe009eeeb675f73ac5d25c7f7b7be6f0d959625f1eac62bfd429fc9a8a6222aaa8d932c5278ee89b236583ec5a86a82c4cdf044b571fa04c43ea4827919a4e9b36bbed68569759da092c95807586c731cb2cc67eabceebd1c6756f5a52438202b9aa1446247319e5fbeb54146bceb6ffc6ccce2dba2f4a3afb55e5b6efc65a14a292fd9ea0ad7b1e6a8078246af7b371426b62a9cd0d04a3745ff6bc71aeee14d6f28ef666beeb4846aab5ac033fafe8021f26468ee7e2d6f94f314591e7f1156dbae187645d43e0dac878959cd4830ea4e27a3410b731c31d5bfb3dfddcfaf200ff130c965d269dcca35d3292102fb85c2af75781538ea923b1bc898f12ce3b87dd4d82aefc315f0854d7ae755402ba64fd654979cb56514cc268dee6686fb7e3df6ac26adc042330c0575a6ce332d8bedc17fce08e433db42e0bfc1213e389a476b66799bd47238ca014875118e0714355dbc14c5660e327243a5940d4d4bc837abac8ca8e6e15fadaa3bfb4d3c12b5b7ceb347ebe8e90f248d901c795dc7287dead85f386cda21d51ed46e8fa9147ddfacc79ee53aef549d296aa63fe102d0f52e88271c17610fd22d4c9b21abde92288137a94730ac13c915588010ecbe4b1a29f5dadabf382387988336dfbf51bf2920762216411cbeebc80778c5436725d7382feb1573e2c4d1c9e61c8c093637ead18dd90c22fe1821e2a817de654a25010ee17f669396f2d510d4441c31a3b8004b17193a03f718836de01a2ff1a9457537be79b897e7f4407445363fa6e04e3676b576aaa512faea33943b0c27c32c0b9e87d44064d435ec72b6c8f52bfa1ba89b77c17ca2185aef345223864de9474792dc1839a9aa35a0bdfcda0dc2cec727e7d91e51f0f20be4e91135d2e3a3c4b88c36f38ec3f287d458af922b225d9afc7ded8de8149c9fd96c2ce9a191ae93ccbe1e0a95307e582b5b9561b093a47c0f70a5d0453cc9971ac409d34b5a43c00e53b1de62c6fbc0eb0cab023dfc7dc7e05ce21a9a313db061c0438adb433d0f73b2065efef809ebc61272cff9f29c912908f5722d66315f88870f158a0b89edd28c7c917e39316fd0cf78f648d2fd0b1bb8e3fa165c9350aa5e1ddfff3b86d4f784aaf28455e6009e500930252548ecde31779e9fe6c74ec57175dca041261bfaa94a3feaa7adba14e8212fd12abff2ca97ac655a554097dbd2cbc49088469046a59145a254f3b5cb2e94cbadafe9b11530d26e6a1256801e61aa2ecd27b470c62e96e68f2e0dbe956ddbd0126a734b27cd85f9b23332347da210bc1c5c40cd40d37a53f47e467d3b3eabb80de14fd13c5e923a56d18b83232e4ae8a92b91 FAIL
Hey @QuLogic yeah, looks like we've broken that with previous improvements. Will fix it today, thanks!
Hey @QuLogic, can you please test it against your env from the PR branch mentioned above?
There are some comments about big-endian machines in
cipher.go
, but its handling may be incomplete? See this build for s390x, which fails incipher_test.go
: