Possible Duplicate:
Pass list to AES key generator in PyCrypto
I'm making a wrapper for an API by porting JavaScript to Python.
It passes a list as the key into an AES generator e.g:
[1885434739, 825373440, 0, 0]
However this gives me the error:
TypeError: 'list' does not support the buffer interface
Does anyone know how I can get Pycrypto AES encryption working with a list as the key, since it's an API I can't change it's requirement that the input is a list. Thank you.
example of current code:
test_key = [1885434739, 825373440, 0, 0]
aes = AES.new(test_key, AES.MODE_ECB)
print(aes)