*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> BN_mod_inverse (3)              
Title
Content
Arch
Section
 

BN_mod_inverse(3)

Contents


NAME    [Toc]    [Back]

       BN_mod_inverse - compute inverse modulo n

LIBRARY    [Toc]    [Back]

       libcrypto, -lcrypto

SYNOPSIS    [Toc]    [Back]

        #include <openssl/bn.h>

        BIGNUM *BN_mod_inverse(BIGNUM *r, BIGNUM *a, const BIGNUM *n,
                  BN_CTX *ctx);

DESCRIPTION    [Toc]    [Back]

       BN_mod_inverse() computes the inverse of a modulo n places
       the result in r (`(a*r)%n==1'). If r is NULL, a new BIGNUM
       is created.

       ctx is a previously allocated BN_CTX used for temporary
       variables. r may be the same BIGNUM as a or n.

RETURN VALUES    [Toc]    [Back]

       BN_mod_inverse() returns the BIGNUM containing the
       inverse, and NULL on error. The error codes can be
       obtained by ERR_get_error(3).

SEE ALSO    [Toc]    [Back]

      
      
       openssl_bn(3), openssl_err(3), BN_add(3)

HISTORY    [Toc]    [Back]

       BN_mod_inverse() is available in all versions of SSLeay
       and OpenSSL.



2000-07-22                    0.9.6g            BN_mod_inverse(3)
[ Back ]
 Similar pages
Name OS Title
atanh Tru64 Compute inverse hyperbolic functions
asinh Tru64 Compute inverse hyperbolic functions
acosh Tru64 Compute inverse hyperbolic functions
cgetri IRIX compute the inverse of a matrix using the LU factorization computed by CGETRF
zgetri IRIX compute the inverse of a matrix using the LU factorization computed by ZGETRF
sgetri IRIX compute the inverse of a matrix using the LU factorization computed by SGETRF
dgetri IRIX compute the inverse of a matrix using the LU factorization computed by DGETRF
ctrtri IRIX compute the inverse of a complex upper or lower triangular matrix A
csytri IRIX compute the inverse of a complex symmetric indefinite matrix A using the factorization A = U*D*U**T or A = L*D
strti2 IRIX compute the inverse of a real upper or lower triangular matrix
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service