
dkg at fifthhorseman
Nov 28, 2009, 9:13 PM
Post #1 of 1
(471 views)
Permalink
|
|
which MPI calculations allow the output argument to be identical to the the input arguments?
|
|
Hi GCrypt folks-- The patch below adjusts a comment about MPI arithmetic to make more sense (it doesn't mean anything to suggest that an unsigned long might be the same as an MPI object, right?) Is there a general agreement that gcrypt MPI calculation functions allow their target value (w) to be the same as any of their other arguments? are there certain calculation operations where that does not hold? This would be useful information to include in the header of the Calculations section of gcrypt.texi. --dkg Index: mpi-add.c =================================================================== --- mpi-add.c (revision 1406) +++ mpi-add.c (working copy) @@ -33,7 +33,7 @@ /**************** * Add the unsigned integer V to the mpi-integer U and store the - * result in W. U and V may be the same. + * result in W. U and W may be the same. */ void gcry_mpi_add_ui(gcry_mpi_t w, gcry_mpi_t u, unsigned long v )
|