forked from kevadesu/forgejo
Support webauthn (#17957)
Migrate from U2F to Webauthn Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
8808293247
commit
35c3553870
224 changed files with 35040 additions and 1079 deletions
12
vendor/github.com/duo-labs/webauthn/protocol/webauthncose/ed25519.go
generated
vendored
Normal file
12
vendor/github.com/duo-labs/webauthn/protocol/webauthncose/ed25519.go
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
// +build go1.13
|
||||
|
||||
package webauthncose
|
||||
|
||||
import (
|
||||
"crypto/ed25519"
|
||||
"crypto/x509"
|
||||
)
|
||||
|
||||
func marshalEd25519PublicKey(pub ed25519.PublicKey) ([]byte, error) {
|
||||
return x509.MarshalPKIXPublicKey(pub)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue