Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewPublicKeyECDH (0.36 sec)

  1. src/crypto/internal/boring/ecdh.go

    	curve string
    	key   *C.GO_EC_KEY
    }
    
    func (k *PrivateKeyECDH) finalize() {
    	C._goboringcrypto_EC_KEY_free(k.key)
    }
    
    func NewPublicKeyECDH(curve string, bytes []byte) (*PublicKeyECDH, error) {
    	if len(bytes) < 1 {
    		return nil, errors.New("NewPublicKeyECDH: missing key")
    	}
    
    	nid, err := curveNID(curve)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/notboring.go

    func GenerateKeyECDH(string) (*PrivateKeyECDH, []byte, error)   { panic("boringcrypto: not available") }
    func NewPrivateKeyECDH(string, []byte) (*PrivateKeyECDH, error) { panic("boringcrypto: not available") }
    func NewPublicKeyECDH(string, []byte) (*PublicKeyECDH, error)   { panic("boringcrypto: not available") }
    func (*PublicKeyECDH) Bytes() []byte                            { panic("boringcrypto: not available") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/crypto/ecdh/nist.go

    		return nil, errors.New("crypto/ecdh: invalid public key")
    	}
    	k := &PublicKey{
    		curve:     c,
    		publicKey: append([]byte{}, key...),
    	}
    	if boring.Enabled {
    		bk, err := boring.NewPublicKeyECDH(c.name, k.publicKey)
    		if err != nil {
    			return nil, err
    		}
    		k.boring = bk
    	} else {
    		// SetBytes also checks that the point is on the curve.
    		if _, err := c.newPoint().SetBytes(key); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top