Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
accountserver
Commits
f542e625
Commit
f542e625
authored
Mar 27, 2019
by
ale
Browse files
Update deps (fix u2f encoding error)
parent
e24d7bc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
vendor/git.autistici.org/ai3/go-common/ldap/compositetypes/composite_types.go
View file @
f542e625
...
...
@@ -103,7 +103,8 @@ func UnmarshalEncryptedKey(s string) (*EncryptedKey, error) {
//
// The serialized format follows part of the U2F standard and just
// stores 64 bytes of the public key immediately followed by the key
// handle data, with no encoding.
// handle data, with no encoding. Note that the public key itself is a
// serialization of the elliptic curve parameters.
//
// The data in U2FRegistration is still encoded, but it can be turned
// into a usable form (github.com/tstranex/u2f.Registration) later.
...
...
@@ -122,13 +123,13 @@ func (r *U2FRegistration) Marshal() string {
// UnmarshalU2FRegistration parses a U2FRegistration from its serialized format.
func
UnmarshalU2FRegistration
(
s
string
)
(
*
U2FRegistration
,
error
)
{
if
len
(
s
)
<
6
4
{
if
len
(
s
)
<
6
5
{
return
nil
,
errors
.
New
(
"badly encoded u2f registration"
)
}
b
:=
[]
byte
(
s
)
return
&
U2FRegistration
{
PublicKey
:
b
[
:
6
4
],
KeyHandle
:
b
[
6
4
:
],
PublicKey
:
b
[
:
6
5
],
KeyHandle
:
b
[
6
5
:
],
},
nil
}
...
...
vendor/vendor.json
View file @
f542e625
...
...
@@ -21,10 +21,10 @@
"revisionTime"
:
"2019-02-17T09:01:06Z"
},
{
"checksumSHA1"
:
"
X14iCbFCOfaIai/TPi4VJ/OBZjc
="
,
"checksumSHA1"
:
"
ETt1H7ZXeT+mOGVuWDvgGBVx98k
="
,
"path"
:
"git.autistici.org/ai3/go-common/ldap/compositetypes"
,
"revision"
:
"
301958e3493e263eb6ea269bf7b8644fbcd9739
4"
,
"revisionTime"
:
"2019-03-2
1T10:42:03
Z"
"revision"
:
"
95125bd587550f8f2ae1e7c412bb0ef94671f01
4"
,
"revisionTime"
:
"2019-03-2
7T08:48:39
Z"
},
{
"checksumSHA1"
:
"mfFIqmwojDqQdJvjLI3y7YCQ+2c="
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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