Skip to content

Commit

Permalink
bindings/blst.h: make blst_scalar_* declarations swig-friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 13, 2020
1 parent 250cecc commit 6d6dec3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bindings/blst.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ typedef struct { blst_fp fp[2]; } blst_fp2;
typedef struct { blst_fp2 fp2[3]; } blst_fp6;
typedef struct { blst_fp6 fp6[2]; } blst_fp12;

void blst_scalar_from_uint32(blst_scalar *ret, const uint32_t a[8]);
void blst_uint32_from_scalar(uint32_t ret[8], const blst_scalar *a);
void blst_scalar_from_uint64(blst_scalar *ret, const uint64_t a[4]);
void blst_uint64_from_scalar(uint64_t ret[4], const blst_scalar *a);
void blst_scalar_from_bendian(blst_scalar *ret, const byte a[32]);
void blst_bendian_from_scalar(byte ret[32], const blst_scalar *a);
void blst_scalar_from_lendian(blst_scalar *ret, const byte a[32]);
void blst_lendian_from_scalar(byte ret[32], const blst_scalar *a);
void blst_scalar_from_uint32(blst_scalar *out, const uint32_t a[8]);
void blst_uint32_from_scalar(uint32_t out[8], const blst_scalar *a);
void blst_scalar_from_uint64(blst_scalar *out, const uint64_t a[4]);
void blst_uint64_from_scalar(uint64_t out[4], const blst_scalar *a);
void blst_scalar_from_bendian(blst_scalar *out, const byte a[32]);
void blst_bendian_from_scalar(byte out[32], const blst_scalar *a);
void blst_scalar_from_lendian(blst_scalar *out, const byte a[32]);
void blst_lendian_from_scalar(byte out[32], const blst_scalar *a);
bool blst_scalar_fr_check(const blst_scalar *a);

#ifndef SWIG
Expand Down

0 comments on commit 6d6dec3

Please sign in to comment.