implement RFC 6979