Skip to content

Commit

Permalink
Unexport needlessly public functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfmcnally committed Aug 18, 2021
1 parent 0e2da37 commit 1cbf2fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions src/bc-shamir.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
extern "C" {
#endif

#include "hazmat.h"
#include "interpolate.h"
#include "shamir.h"

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion src/interpolate.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* values[i] = | | -------------
* j != i (xc[i]-xc[j])
*/
void
static void
hazmat_lagrange_basis(uint8_t *values,
uint8_t n,
const uint8_t *xc,
Expand Down
21 changes: 0 additions & 21 deletions src/interpolate.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,6 @@

#include "hazmat.h"

/*
* calculate the lagrange basis coefficients for the lagrange polynomial
* defined byt the x coordinates xc at the value x.
*
* inputs: values: pointer to an array to write the values
* n: number of points - length of the xc array, 0 < n <= 32
* xc: array of x components to use as interpolating points
* x: x coordinate to evaluate lagrange polynomials at
*
* After the function runs, the values array should hold data satisfying
* the following:
* --- (x-xc[j])
* values[i] = | | -------------
* j != i (xc[i]-xc[j])
*/
void
hazmat_lagrange_basis(uint8_t *values,
uint8_t n,
const uint8_t *xc,
uint8_t x);

/**
* safely interpolate the polynomial going through
* the points (x0 [y0_0 y0_1 y0_2 ... y0_31]) , (x1 [y1_0 ...]), ...
Expand Down

0 comments on commit 1cbf2fc

Please sign in to comment.