mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Output armor works, RSA keygen works.
This commit is contained in:
parent
5393dd53c5
commit
25c8f1a3d7
21 changed files with 395 additions and 115 deletions
|
@ -265,6 +265,7 @@ mpi_copy( MPI a )
|
|||
b = mpi_alloc( a->nlimbs );
|
||||
#endif
|
||||
b->nlimbs = a->nlimbs;
|
||||
b->sign = a->sign;
|
||||
for(i=0; i < b->nlimbs; i++ )
|
||||
b->d[i] = a->d[i];
|
||||
}
|
||||
|
@ -318,9 +319,9 @@ mpi_alloc_set_ui( unsigned long u)
|
|||
void
|
||||
mpi_swap( MPI a, MPI b)
|
||||
{
|
||||
MPI x;
|
||||
struct mpi_struct tmp;
|
||||
|
||||
x = a; a = b; b = x;
|
||||
tmp = *a; *a = *b; *b = tmp;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue