Skip to content

Commit

Permalink
Merge branch 'ProtonMail:main' into addphoto
Browse files Browse the repository at this point in the history
  • Loading branch information
izouxv authored Nov 5, 2023
2 parents 397367e + afb1ddc commit efd35a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openpgp/internal/ecc/x448.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ func (c *x448) GenerateECDH(rand io.Reader) (point []byte, secret []byte, err er
func (c *x448) Encaps(rand io.Reader, point []byte) (ephemeral, sharedSecret []byte, err error) {
var pk, ss x448lib.Key
seed, e, err := c.generateKeyPairBytes(rand)

if err != nil {
return nil, nil, err
}
copy(pk[:], point)
x448lib.Shared(&ss, &seed, &pk)

Expand Down

0 comments on commit efd35a8

Please sign in to comment.