make hsmparams members writable
(#365)