#!/usr/bin/python

import sys
import camellia

plain = '0' * 16
key = "0123456789abcdef"

if len(sys.argv) == 2:
  key = sys.argv[1]

assert len(key) in (16, 24, 32), "Key string should be 16, 24, 32 charaters."

keytable = camellia.Ekeygen(key)

for x in xrange(100000):
  camellia.EncryptBlock(plain, keytable)
