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

  man pages->Tru64 Unix 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

SYNOPSIS    [Toc]    [Back]

       #include <openssl/bn.h>

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

DESCRIPTION    [Toc]    [Back]

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

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

RETURN VALUES    [Toc]    [Back]

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

HISTORY    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
       Functions: bn(3), err(3), BN_add(3)



                                                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