MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / p256exchanger

Struct p256exchanger

utils/crypto/ecdh/impl.go:54–57  ·  view source on GitHub ↗

* type s192exchanger struct { provider *provider publicKey []byte sharedKey []byte compressKey bool } func (e *s192exchanger) PublicKey() []byte { return e.publicKey } func (e *s192exchanger) SharedKey() []byte { return e.sharedKey } func (e *s192exchanger) Exange(newKey []byte) ([]

Source from the content-addressed store, hash-verified

52*/
53
54type p256exchanger struct {
55 privateKey *ecdh.PrivateKey
56 shareKey []byte
57}
58
59func (e *p256exchanger) PublicKey() []byte {
60 return e.privateKey.PublicKey().Bytes()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected