unify construction of secret values