Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
e83d71d3
Commit
e83d71d3
authored
Oct 18, 2019
by
Sietse Ringers
Browse files
chore: refactor gabi bigint wrapper method name
parent
009b7075
Changes
2
Show whitespace changes
Inline
Side-by-side
irma_signature.go
View file @
e83d71d3
...
...
@@ -53,7 +53,7 @@ func (sm *SignedMessage) Disclosure() *Disclosure {
// where serverNonce is the nonce sent by the signature requestor.
func
ASN1ConvertSignatureNonce
(
message
string
,
nonce
*
big
.
Int
,
timestamp
*
atum
.
Timestamp
)
*
big
.
Int
{
msgHash
:=
sha256
.
Sum256
([]
byte
(
message
))
n
:=
nonce
.
Value
()
n
:=
nonce
.
Go
()
if
n
==
nil
{
n
=
gobig
.
NewInt
(
0
)
}
...
...
timestamp.go
View file @
e83d71d3
...
...
@@ -37,7 +37,7 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
// Convert the sigs and disclosed (double) slices to (double) slices of gobig.Int's for asn1
sigsint
:=
make
([]
*
gobig
.
Int
,
len
(
sigs
))
for
i
,
k
:=
range
sigs
{
sigsint
[
i
]
=
k
.
Value
()
sigsint
[
i
]
=
k
.
Go
()
}
timestampServerUrl
:=
""
...
...
@@ -52,7 +52,7 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
if
!
new
{
disclosedint
[
i
]
=
make
([]
*
gobig
.
Int
,
len
(
disclosed
[
i
]))
for
j
,
k
:=
range
disclosed
[
i
]
{
disclosedint
[
i
][
j
]
=
k
.
Value
()
disclosedint
[
i
][
j
]
=
k
.
Go
()
}
}
else
{
if
len
(
disclosed
[
i
])
<
2
||
disclosed
[
i
][
1
]
.
Cmp
(
bigZero
)
==
0
{
...
...
@@ -66,7 +66,7 @@ func TimestampRequest(message string, sigs []*big.Int, disclosed [][]*big.Int, n
if
err
!=
nil
{
return
nil
,
""
,
err
}
dlreps
[
i
]
=
r
.
Value
()
dlreps
[
i
]
=
r
.
Go
()
}
// Determine timestamp server that should be used
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment