mirror of https://github.com/go-gitea/gitea.git
13 lines
196 B
Go
13 lines
196 B
Go
|
// +build go1.13
|
||
|
|
||
|
package webauthncose
|
||
|
|
||
|
import (
|
||
|
"crypto/ed25519"
|
||
|
"crypto/x509"
|
||
|
)
|
||
|
|
||
|
func marshalEd25519PublicKey(pub ed25519.PublicKey) ([]byte, error) {
|
||
|
return x509.MarshalPKIXPublicKey(pub)
|
||
|
}
|