File: precomp.data.py

package info (click to toggle)
tinyssh 20190101-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,208 kB
  • sloc: ansic: 11,914; sh: 1,005; python: 385; makefile: 18
file content (21 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import binascii

f = open("precomp.txt")

def l(line):

        l = ""
        for i in range(32):
                if i == 31:
                        l += "0x%s%s" % (line[2*i], line[2*i+1])
                else:
                        l += "0x%s%s," % (line[2*i], line[2*i+1])
        return l
        

while True:
        line=f.readline()
        if len(line) == 0:
                f.close()
                break
        print "{", l(line), "},"