tfm: make a few functions static

clamav expects them to be static and it does not seem bad to do so.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
This commit is contained in:
Sebastian Andrzej Siewior 2015-10-31 22:48:07 +01:00
parent 5c395e04e6
commit 09c7b2dce0
4 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@
*/ */
#include <tfm_private.h> #include <tfm_private.h>
int fp_read_radix(fp_int *a, char *str, int radix) int fp_read_radix(fp_int *a, const char *str, int radix)
{ {
int y, neg; int y, neg;
char ch; char ch;

View File

@ -9,7 +9,7 @@
*/ */
#include <tfm_private.h> #include <tfm_private.h>
void fp_read_signed_bin(fp_int *a, unsigned char *b, int c) void fp_read_signed_bin(fp_int *a, const unsigned char *b, int c)
{ {
/* read magnitude */ /* read magnitude */
fp_read_unsigned_bin (a, b + 1, c - 1); fp_read_unsigned_bin (a, b + 1, c - 1);

View File

@ -9,7 +9,7 @@
*/ */
#include <tfm_private.h> #include <tfm_private.h>
void fp_read_unsigned_bin(fp_int *a, unsigned char *b, int c) void fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c)
{ {
/* zero the int */ /* zero the int */
fp_zero (a); fp_zero (a);

View File

@ -467,14 +467,14 @@ int fp_prime_random_ex(fp_int *a, int t, int size, int flags, tfm_prime_callback
int fp_count_bits(fp_int *a); int fp_count_bits(fp_int *a);
int fp_unsigned_bin_size(fp_int *a); int fp_unsigned_bin_size(fp_int *a);
void fp_read_unsigned_bin(fp_int *a, unsigned char *b, int c); void fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c);
void fp_to_unsigned_bin(fp_int *a, unsigned char *b); void fp_to_unsigned_bin(fp_int *a, unsigned char *b);
int fp_signed_bin_size(fp_int *a); int fp_signed_bin_size(fp_int *a);
void fp_read_signed_bin(fp_int *a, unsigned char *b, int c); void fp_read_signed_bin(fp_int *a, const unsigned char *b, int c);
void fp_to_signed_bin(fp_int *a, unsigned char *b); void fp_to_signed_bin(fp_int *a, unsigned char *b);
int fp_read_radix(fp_int *a, char *str, int radix); int fp_read_radix(fp_int *a, const char *str, int radix);
int fp_radix_size(fp_int *a, int radix, int *size); int fp_radix_size(fp_int *a, int radix, int *size);
int fp_toradix(fp_int *a, char *str, int radix); int fp_toradix(fp_int *a, char *str, int radix);