Deterministic signing