~vcs-imports/suspend/trunk

Viewing all changes in revision 433.

  • Committer: rjwysocki
  • Date: 2008-06-08 17:37:32 UTC
  • Revision ID: vcs-imports@canonical.com-20080608173732-ghdvu0b7fayn6mhy
gcry_mpi_scan() may decide that the actual size of the number passed to it to
convert into an MPI is smaller that the 'size' argument passed to it along with
the number, in which case we get a wrong key size during resume and the resume
fails as a result.

To fix this, make the key generation code check if the size of the session key
and ivec is correct from the gcry_mpi_scan()/gcry_mpi_aprint() perspective.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: