def transform_key(key, seed, rounds):
 cipher = AES.new(seed, AES.MODE_ECB)
 for n in range(0, rounds):
  key = cipher.encrypt(key)
 return sha256(key)

def transform_key ( key , seed , rounds ) : cipher = AES . new ( seed , AES . MODE_ECB ) for n in range ( 0 , rounds ) : key = cipher . encrypt ( key ) return sha256 ( key )
transform key with seed rounds times using aes ecb .