15 Commits

Author SHA1 Message Date
Jacek Sieka
c4aec8b664
split decls into separate modules in bearssl/abi (#27)
* split `decls.nim` into smaller modules - allows using parts of the ABI
without compiling all of `bearssl`
* deprecate functions with `Br` prefix - there are duplicate exports
both with and without `Br` for the same function and we use both in
consumers like `chronos` and `libp2p`
* fix several cases of incorrectly mapped types
* use `var` for certain arguments that can't be `nil`
* add script to regenerate ABI with `c2nim`
* consistently use `uint` for length (`int` was sometimes used)

The Split likely needs more cleanup work - this is a first cut to get
the idea in place.

In the new layout, `bearssl/abi/` contains "raw" nim mappings while
hand-written helpers are in `bearssl/`.
2022-06-14 19:33:00 +02:00
jangko
450a0d1007
add rsa_pss sign and vrfy FFI 2022-03-02 17:06:59 +07:00
Jacek Sieka
5b70350dcb
enable --stylecheck:usages 2021-12-10 10:03:30 +01:00
narimiran
1a0401d6d0 fix type mismatch 2021-05-20 08:28:46 +02:00
Ștefan Talpalaru
5f226c97ec enable cross-compilation 2021-02-03 13:03:54 +07:00
Eugene Kabanov
ba5f468798
Fix BR_UNALIGNED define for ARM architectures. (#11)
* Fix BR_UNALIGNED define for ARM architectures.
2020-07-28 03:09:59 +03:00
Jacek Sieka
7d2a18115b
add brHmacDrbgGenerate 2020-07-04 10:20:47 +02:00
Jacek Sieka
68c6d27304 fix raises in imported C functions 2020-04-06 21:08:18 +03:00
cheatfate
924fb6cad1
Fix path handling for compilation targets.
Bump version to 0.1.5.
2020-03-08 20:28:15 +02:00
Zahary Karadjov
c8e89349bc
More rigorous effect annotations for all imported procs 2019-12-07 15:40:03 +02:00
cheatfate
b67ae9534d
Fix compilation warnings.
Bump version to 0.1.2.
2019-11-06 13:15:07 +02:00
cheatfate
ca3bafb85d
Fix [GcUnsafe2] problems for consumers of this library.
Bump version to 0.1.1.
2019-11-06 12:56:28 +02:00
Zahary Karadjov
f6133ec47d
Better gcsafety 2019-10-18 14:12:57 +03:00
Ștefan Talpalaru
52590023bc
ARM64 support 2019-10-17 18:03:09 +02:00
cheatfate
134cadf55b
Move all declarations from root file to decls.nim
Fix some declarations (e.g. size_t and pointer types).
Add Mozilla ca certificates store.
Add SSL error messages.
2019-10-07 20:57:40 +03:00