diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-15 10:57:59 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-15 10:57:59 (GMT) |
| commit | 79f559fdb5b42afb0b51a81227aea6038d338b15 (patch) | |
| tree | 61fe5131a4b0623f70121aa1120dced613dc624f /generic/tclTomMath.decls | |
| parent | 14225bf18403da5689ee38fe70343b877b7bc571 (diff) | |
| download | tcl-79f559fdb5b42afb0b51a81227aea6038d338b15.zip tcl-79f559fdb5b42afb0b51a81227aea6038d338b15.tar.gz tcl-79f559fdb5b42afb0b51a81227aea6038d338b15.tar.bz2 | |
Add mp_pack to the libtommath stub-table: it's easier to work with than mp_to_ubin
Diffstat (limited to 'generic/tclTomMath.decls')
| -rw-r--r-- | generic/tclTomMath.decls | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls index 3a3b9a8..27c4f98 100644 --- a/generic/tclTomMath.decls +++ b/generic/tclTomMath.decls @@ -247,6 +247,10 @@ declare 71 { mp_err MP_WUR TclBN_mp_unpack(mp_int *rop, size_t count, mp_order order, size_t size, mp_endian endian, size_t nails, const void *op) } +declare 72 { + mp_err MP_WUR TclBN_mp_pack(void *rop, size_t maxcount, size_t *written, mp_order order, + size_t size, mp_endian endian, size_t nails, const mp_int *op) +} # Added in libtommath 1.1.0 declare 73 {deprecated {merged with mp_and}} { @@ -261,6 +265,9 @@ declare 75 {deprecated {merged with mp_xor}} { declare 76 { mp_err MP_WUR TclBN_mp_signed_rsh(const mp_int *a, int b, mp_int *c) } +declare 77 { + size_t MP_WUR TclBN_mp_pack_count(const mp_int *a, size_t nails, size_t size) +} # Added in libtommath 1.2.0 declare 78 { |
