Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Jul 1, 2024
1 parent 56cfae3 commit 2f26fb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (m MessageImprint) Equal(n MessageImprint) bool {
bytes.Equal(m.HashedMessage, n.HashedMessage)
}

// ASN1NullRawValue is the valid struct of asn1.NullRawValue
// ASN1NullRawValue represents the valid struct of asn1.NullRawValue
//
// https://pkg.go.dev/encoding/asn1#NullRawValue
var ASN1NullRawValue = asn1.RawValue{
Expand Down Expand Up @@ -134,7 +134,6 @@ func NewRequest(opts RequestOptions) (*Request, error) {
}
hashAlgParameter := opts.HashAlgorithmParameters
if reflect.DeepEqual(hashAlgParameter, asn1.RawValue{}) || reflect.DeepEqual(hashAlgParameter, asn1.NullRawValue) {
// the valid asn1 struct for null RawValue
hashAlgParameter = ASN1NullRawValue
}
var nonce *big.Int
Expand Down

0 comments on commit 2f26fb2

Please sign in to comment.