json: Add subkey_algo and defaults to createkey