Add function CMS_RecipientInfo_encrypt
[oweals/openssl.git] / crypto / rsa / rsa_none.c
index f22fce5016efd913d69afec5e8101803f532bd81..b8d01a92cf4ed91a8b12385af8d30ec240f017ec 100644 (file)
  * [including the GNU Public Licence.]
  */
 
+#define OPENSSL_FIPSAPI
+
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/bn.h>
 #include <openssl/rsa.h>
 #include <openssl/rand.h>
 
-int RSA_padding_add_none(unsigned char *to, int tlen, unsigned char *from,
-            int flen)
+int RSA_padding_add_none(unsigned char *to, int tlen,
+       const unsigned char *from, int flen)
        {
        if (flen > tlen)
                {
@@ -81,8 +83,8 @@ int RSA_padding_add_none(unsigned char *to, int tlen, unsigned char *from,
        return(1);
        }
 
-int RSA_padding_check_none(unsigned char *to, int tlen, unsigned char *from,
-            int flen, int num)
+int RSA_padding_check_none(unsigned char *to, int tlen,
+       const unsigned char *from, int flen, int num)
        {
 
        if (flen > tlen)