6 FIXED_FILE = "no-such-file"
7 FIXED_PASS = "swordfish"
8 FIXED_NACL = binascii.unhexlify (b"00112233445566778899aabbccddeeff")
11 print (file=sys.stderr, *a, **b)
14 def create_objects (n):
16 Repeatedly apply the .next () method of the Encrypt handle for profiling.
19 enc = crypto.Encrypt (1, 1, password=FIXED_PASS, nacl=FIXED_NACL)
22 _ = enc.next (FIXED_FILE)
24 noise ("accumulated %d ivs" % len (enc.get_used_ivs ()))
27 noise ("** <C-d> to terminate **")
28 _ = sys.stdin.read () # halt here so we get a chance to inspec /proc/$$/status
35 noise ("number of iterations required!")
41 return create_objects (n)
43 if __name__ == "__main__":
44 sys.exit (main (sys.argv))