lkml.org 
[lkml]   [2021]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 14/18] lib/mpi: export mpi_rshift
    Date
    A subsequent patch will make the crypto/dh's dh_is_pubkey_valid() to
    calculate a safe-prime groups Q parameter from P: Q = (P - 1) / 2. For
    implementing this, mpi_rshift() will be needed. Export it so that it's
    accessible from crypto/dh.

    Signed-off-by: Nicolai Stange <nstange@suse.de>
    Reviewed-by: Hannes Reinecke <hare@suse.de>
    ---
    lib/mpi/mpi-bit.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/lib/mpi/mpi-bit.c b/lib/mpi/mpi-bit.c
    index 142b680835df..070ba784c9f1 100644
    --- a/lib/mpi/mpi-bit.c
    +++ b/lib/mpi/mpi-bit.c
    @@ -242,6 +242,7 @@ void mpi_rshift(MPI x, MPI a, unsigned int n)
    }
    MPN_NORMALIZE(x->d, x->nlimbs);
    }
    +EXPORT_SYMBOL_GPL(mpi_rshift);

    /****************
    * Shift A by COUNT limbs to the left
    --
    2.26.2
    \
     
     \ /
      Last update: 2021-12-09 10:05    [W:4.133 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site