File: ed25519.go

package info (click to toggle)
golang-github-go-webauthn-webauthn 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 197 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
//go:build go1.13

package webauthncose

import (
	"crypto/ed25519"
	"crypto/x509"
)

func marshalEd25519PublicKey(pub ed25519.PublicKey) ([]byte, error) {
	return x509.MarshalPKIXPublicKey(pub)
}