You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/vendor/github.com/keybase/go-crypto/openpgp/packet/ecdh.go

20 lines
344 B

package packet
import (
"math/big"
"crypto/ecdsa"
"errors"
)
type ecdhPrivateKey struct {
ecdsa.PublicKey
x *big.Int
}
func (e *ecdhPrivateKey) Decrypt(b []byte) ([]byte, error) {
// TODO(maxtaco): compute the shared secret, run the KDF and
// recover the decrypted shard key.
return nil, errors.New("ECDH decrypt unimplemented")
}