Private module function.
(key)
| 296 | assert character in key |
| 297 | |
| 298 | def _check_minor(key): |
| 299 | 'Private module function.' |
| 300 | assert isinstance(key, str) and len(key) == 64 |
| 301 | indexs = [] |
| 302 | for byte in map(ord, key): |
| 303 | for shift in xrange(6, -2, -2): |
| 304 | indexs.append((byte >> shift) & 3) |
| 305 | for index in xrange(4): |
| 306 | assert indexs.count(index) == 64 |
| 307 | |
| 308 | def _encode_map_1(major): |
| 309 | 'Private module function.' |
no test coverage detected