Use single X931 key generation source file for FIPS and non-FIPS builds.
[openssl.git] / crypto / rsa / rsa_sign.c
index e1b1714210f122d2fc9d84a3daa00d2d80721cce..0be4ec7fb01f08b04e2e6558fc5a9df80d4c8a7a 100644 (file)
@@ -145,8 +145,8 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len,
 
 int int_rsa_verify(int dtype, const unsigned char *m,
                          unsigned int m_len,
-                         unsigned char *rm, unsigned int *prm_len,
-                         const unsigned char *sigbuf, unsigned int siglen,
+                         unsigned char *rm, size_t *prm_len,
+                         const unsigned char *sigbuf, size_t siglen,
                          RSA *rsa)
        {
        int i,ret=0,sigtype;
@@ -197,7 +197,7 @@ int int_rsa_verify(int dtype, const unsigned char *m,
                /* Excess data can be used to create forgeries */
                if(p != s+i)
                        {
-                       RSAerr(RSA_F_RSA_VERIFY,RSA_R_BAD_SIGNATURE);
+                       RSAerr(RSA_F_INT_RSA_VERIFY,RSA_R_BAD_SIGNATURE);
                        goto err;
                        }
 
@@ -206,7 +206,7 @@ int int_rsa_verify(int dtype, const unsigned char *m,
                if(sig->algor->parameter
                   && ASN1_TYPE_get(sig->algor->parameter) != V_ASN1_NULL)
                        {
-                       RSAerr(RSA_F_RSA_VERIFY,RSA_R_BAD_SIGNATURE);
+                       RSAerr(RSA_F_INT_RSA_VERIFY,RSA_R_BAD_SIGNATURE);
                        goto err;
                        }