Support random and derived key generation