# CRYPTO_SIGN_GetModulus

## Syntax

      #include <nitro/crypto/sign.h>

      int CRYPTO_SIGN_GetModulus(
      const void* pub_ptr
      );

## Arguments

`pub_ptr` | Specifies the pointer to the public key.

## Return Values

Returns one of the following process results.

`Not NULL` | The analysis succeeded, and a pointer to the modulus of the public key is returned.
`NULL` | Analysis failed.

## Description

Analyzes the location of the modulus of the public key, and returns a pointer to that location. In pub_ptr, provide a pointer to the public key to use during signature verification. The pointer that is returned can be specified for the `mod_ptr` argument of functions such as CRYPTO_VerifySignature or CRYPTO_VerifySignatureWithHash.

Using this function makes it unnecessary to search for the modulus of the public key.

## See Also

`CRYPTO_VerifySignature
CRYPTO_VerifySignatureWithHash`

## Revision History

2008/09/16 Initial version.

CONFIDENTIAL