Repository navigation
Commit fc2ff9c
committed
Map ICE credential bytes with encode6() instead of a lookup table
Replace the charset[] table lookup in ice_random_string() with a
branch-light arithmetic mapping of 6 random bits onto 64 distinct
ice-chars (+, /, A-Z, a-z, 0-9), see RFC 8445 section 15.1.1 parent d2280cf commit fc2ff9c
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
296 | 311 | | |
297 | 312 | | |
298 | | - | |
| 313 | + | |
299 | 314 | | |
300 | 315 | | |
301 | 316 | | |
302 | 317 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 318 | | |
308 | 319 | | |
309 | 320 | | |
310 | 321 | | |
311 | 322 | | |
312 | | - | |
| 323 | + | |
313 | 324 | | |
314 | 325 | | |
315 | 326 | | |
| |||
0 commit comments