diff options
author | Werner Koch <[email protected]> | 2002-09-11 07:28:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-09-11 07:28:44 +0000 |
commit | 7a71a26d590666b8cdaa3165fb488db6b0673533 (patch) | |
tree | 3585d493dfc9db71b1f1d16c501a4b308dd52e1c /mpi/mpi-bit.c | |
parent | * g10.c, options.h: Removed option --emulate-checksum-bug. (diff) | |
download | gnupg-7a71a26d590666b8cdaa3165fb488db6b0673533.tar.gz gnupg-7a71a26d590666b8cdaa3165fb488db6b0673533.zip |
* mpi-bit.c (mpi_normalize): Replaced the check for protected byV1-2-5V1-2-4V1-2-3RC-1-2-5rc2RC-1-2-5rc1RC-1-2-4rc1RC-1-2-3rc2RC-1-2-3rc1
is_opaque.
(mpi_get_nbits): Removed the special case for protected MPIs.
* mpicoder.c (do_get_buffer): Likewise.
(mpi_print): Removed the nbit_info printing.
Diffstat (limited to 'mpi/mpi-bit.c')
-rw-r--r-- | mpi/mpi-bit.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/mpi/mpi-bit.c b/mpi/mpi-bit.c index fa6bf06e6..440e35212 100644 --- a/mpi/mpi-bit.c +++ b/mpi/mpi-bit.c @@ -55,7 +55,7 @@ __clz_tab[] = void mpi_normalize( MPI a ) { - if( mpi_is_protected(a) ) + if( mpi_is_opaque (a) ) return; for( ; a->nlimbs && !a->d[a->nlimbs-1]; a->nlimbs-- ) @@ -72,13 +72,6 @@ mpi_get_nbits( MPI a ) { unsigned n; - if( mpi_is_protected(a) ) { - n = mpi_get_nbit_info(a); - if( !n ) - n = a->nlimbs * BITS_PER_MPI_LIMB; - return n; - } - mpi_normalize( a ); if( a->nlimbs ) { mpi_limb_t alimb = a->d[a->nlimbs-1]; |