Lines Matching full:write
66 - sys.stderr.write('ERROR: Failed to import the "M2Crypto" module: %s\n' % e.message)
67 - sys.stderr.write('Please install the "M2Crypto" Python module.\n')
68 - sys.stderr.write('On Debian GNU/Linux the package is called "python-m2crypto".\n')
72 + sys.stderr.write('ERROR: Failed to import the "Cryptodome.PublicKey" module: %s\n' % e.message)
73 + sys.stderr.write('Please install the "Cryptodome.PublicKey" Python module.\n')
74 + sys.stderr.write('On Debian GNU/Linux the package is called "python-cryptodomex".\n')
95 - output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
99 + output.write(u'static BN_ULONG {}[] = {{\n'.format(name))
104 - output.write('\t')
105 - output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2x, ' % (ord(v1), ord(v2), ord(v3), ord(v4),…
106 + output.write(u'\t')
107 + output.write(u'0x{:016x}ULL, '.format(vword))
111 - output.write('\n')
112 + output.write(u'\n')
114 - output.write('\n')
115 - output.write('};\n\n')
116 + output.write(u'\n')
117 + output.write(u'};\n\n')
129 - output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
133 + output.write(u'static BN_ULONG {}[] = {{\n'.format(name))
138 - output.write('\t')
139 - output.write('0x%.2x%.2x%.2x%.2x, ' % (ord(v1), ord(v2), ord(v3), ord(v4)))
140 + output.write(u'\t')
141 + output.write(u'0x{:08x}, '.format(vword))
145 - output.write('\n')
146 + output.write(u'\n')
148 - output.write('\n')
149 - output.write('};\n\n')
150 + output.write(u'\n')
151 + output.write(u'};\n\n')
155 + output.write(u'#include <stdint.h>\n')
156 + output.write(u'#include <openssl/bn.h>\n')
159 - output.write('#include <stdint.h>\n')
166 - output.write(r'''
167 + output.write(u'''
186 - output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
187 - output.write('};\n')
188 + output.write(u' KEYS(e_{0}, n_{0}),\n'.format(n))
189 + output.write(u'};\n')
193 - output.write('#include <stdint.h>\n')
196 - output.write('static const uint8_t %s[%d] = {\n' % (name, len(val)))
201 + output.write(u'#include <stdint.h>\n')
202 + output.write(u'static const uint8_t %s[%d] = {\n' % (name, len(vwords)))
207 - output.write('\t')
208 - output.write('0x%.2x, ' % ord(v))
209 + output.write(u'\t')
210 + output.write(u'0x{:02x}, '.format(vword))
214 - output.write('\n')
215 + output.write(u'\n')
217 - output.write('\n')
218 - output.write('};\n\n')
219 + output.write(u'\n')
220 + output.write(u'};\n\n')
223 - output.write(r'''
224 + output.write(u'''
241 - output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
242 - output.write('};\n')
245 + output.write(u' KEYS(e_{0}, n_{0}),\n'.format(n))
246 + output.write(u'};\n')