Wrote subkey initialization for key generation (NOT TESTED).