[CRYPTO] aes-generic: Make key generation exportable