• Gustav Simonsson's avatar
    Correct ECIES shared key length check · 52a46e61
    Gustav Simonsson authored
    * Ensure the ECIES shared key is padded with zero bytes if it's
      smaller than the requested key length.
    * Split the ECIES shared key error into two;
      one for when the generated key is too big for the params
      and one for when it's nil (point of infinity returned by the
      curve scalar multiplication).
    52a46e61
ecies.go 7.82 KB