mirror of
https://github.com/slackhq/nebula.git
synced 2026-02-15 09:14:23 +01:00
helper functions to more correctly marshal curve 25519 public keys (#1481)
This commit is contained in:
@@ -446,6 +446,10 @@ func (d *dummyCert) PublicKey() []byte {
|
||||
return d.publicKey
|
||||
}
|
||||
|
||||
func (d *dummyCert) MarshalPublicKeyPEM() []byte {
|
||||
return cert.MarshalPublicKeyToPEM(d.curve, d.publicKey)
|
||||
}
|
||||
|
||||
func (d *dummyCert) Signature() []byte {
|
||||
return d.signature
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user