Skip to content

Commit 5e3abca

Browse files
derekparkerdbenoit17
authored andcommitted
Add missing methods for ECDH keys
1 parent 0881b8a commit 5e3abca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openssl/notboring.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ func VerifyECDSA(pub *PublicKeyECDSA, hash []byte, r, s BigInt, h crypto.Hash) b
7171
type PublicKeyECDH struct{ _ int }
7272
type PrivateKeyECDH struct{ _ int }
7373

74+
func (pc *PublicKeyECDH) Bytes() []byte { panic("boringcrypto: not available") }
75+
func (pc *PrivateKeyECDH) PublicKey() (*PublicKeyECDH, error) { panic("boringcrypto: not available") }
76+
7477
func NewPublicKeyECDH(curve string, bytes []byte) (*PublicKeyECDH, error) {
7578
panic("boringcrypto: not available")
7679
}

0 commit comments

Comments
 (0)