You could borrow the output of the perl scripts from openssl.
https://github.com/openssl/openssl/blob/master/crypto/aes/as...