65 Commits

Author SHA1 Message Date
Diego
9cd260db43
Bump version 2023-11-15 19:47:59 +01:00
Diego
84e3b66cad
Fix unittest2 version range 2023-11-15 19:35:47 +01:00
jangko
d55d3a86d7
Switch to llvm-mingw in Windows CI 2023-09-14 10:49:20 +07:00
Jacek Sieka
e4157639db
0.2.1 v0.2.1 2023-08-16 12:52:03 +02:00
Jacek Sieka
917b7274f9
work around C++ linking issue (#50)
* test c++ support, work around linking issue

* fix imports, don't test C++ after all
2023-08-16 12:47:15 +02:00
Jacek Sieka
e4f0977b54
bump (#46) 2023-08-16 10:48:02 +02:00
tersec
99fcb3405c
remove Nim 1.2 and 1.4 support; test Nim 2.0 in CI (#48) 2023-06-13 20:55:09 +00:00
andri lim
9372f27a25
remove appveyor/travis scripts and fix ci (#47) 2023-05-22 12:03:57 +02:00
Yuriy Glukhov
acf9645e32
Fixed hmacSize definition (#44) 2023-01-17 11:49:12 +01:00
Jacek Sieka
a647994910
bump upstream (#41)
* fix carry propagation bug
* improved c++ compat
* new date range validation api
2022-12-08 21:34:21 +01:00
Jacek Sieka
d0271920a7
ci: abort redundant PR builds (#40)
* ci: abort redundant PR builds

* bump checkouts
2022-11-22 17:55:50 +01:00
Jacek Sieka
cc4e5c54aa
remove non-split api, bump version (#39)
* remove non-split api, bump version
  * 0.1.5 is the last version to support the old ABI
* move cacert to certs/
* add compat shim for abi/cacert
2022-11-21 18:01:21 +01:00
Jacek Sieka
5159f7e385
update nimble build (#38)
* update nimble build

* remove arc tests

orc is default on devel
v0.1.5
2022-11-21 11:07:33 +01:00
Jacek Sieka
9ee8b136e3
readd bearsl/cacert 2022-11-20 08:21:46 +01:00
Jacek Sieka
0e5fa149b6
update cacert, turn it into C file (#37)
Makes the certificates compile a single time instead of being included
all over - also bump to a more recent version
2022-11-18 08:32:41 +01:00
Ivan Yonchovski
f4c4233de4 Add setup files 2022-07-25 22:05:58 +03:00
Jacek Sieka
25009951ff
rsa: import intx (#35) 2022-07-18 07:17:12 +02:00
Jacek Sieka
1e9b702650
brssl: c2nim-generated spelling (#33)
* generate brssl.nim with regenerate.sh as well
2022-07-07 18:47:59 +02:00
Miran
32e125015a
move -d:nimRawSetjmp to config.nims (#30)
* move `-d:nimRawSetjmp` to config.nims

Refs https://github.com/status-im/nimbus-build-system/issues/44

* not vcc

* use .cfg not .nims
2022-06-24 20:09:29 +02:00
Jacek Sieka
2631f8473d
cross-compile-compatible paths (#31) 2022-06-24 20:09:06 +02:00
Jacek Sieka
4ba7f13372
pem: convenience API (#29) 2022-06-16 16:50:54 +02:00
Jacek Sieka
f0ea93f77e
rand: convenience API (#28)
Helpers to generate random numbers, including simple Nim types

* disable C++ tests
  * there are too many `const` vs `non-const` issues to run these tests -
C++ never actually worked
* add generateBytes to make fresh seqs

Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co>
Co-authored-by: Etan Kissling <etan@status.im>
2022-06-15 22:53:40 +02:00
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
Zahary Karadjov
0ebb1d7a4a
Add a Nimble lock file 2022-04-14 18:08:54 +03:00
Zahary Karadjov
65b74302e0
Fix a submodule URL (otherwise, cloning was failing on a fresh Windows installation) 2022-03-04 13:29:44 +02:00
jangko
450a0d1007
add rsa_pss sign and vrfy FFI 2022-03-02 17:06:59 +07:00
Ștefan Talpalaru
ba80e2a0d7
CI: cleanup 2021-12-14 03:22:42 +01:00
Ștefan Talpalaru
b39f3d2975
CI: test with multiple Nim versions (#24)
* CI: test with multiple Nim versions

and add a real test
2021-12-12 00:01:56 +01:00
Jacek Sieka
9ca2e9fe87
Merge pull request #23 from status-im/stylecheck-usages
enable --stylecheck:usages
2021-12-10 10:54:33 +01:00
Jacek Sieka
5b70350dcb
enable --stylecheck:usages 2021-12-10 10:03:30 +01:00
Jacek Sieka
dc62f4fccd
Merge pull request #20 from narimiran/cuchar-fix
fix type mismatch
2021-06-07 13:46:10 +02:00
Ștefan Talpalaru
ba68572fde
CI: simplify Nim compiler caching (#19) 2021-06-03 03:02:00 +02:00
narimiran
1a0401d6d0 fix type mismatch 2021-05-20 08:28:46 +02:00
Eugene Kabanov
0a7401ad46
Bump bundled cacert.pem to version generated at Tue Jan 19 04:12:04 2021 GMT. (#18) 2021-02-24 14:23:05 +02:00
Mamy Ratsimbazafy
8dd9a83550
Use bearSSL mirror + update to latest (#17)
* Change submodule source to our mirror

* Update to latest commit

* check if nimble fetches submodules

* install everything

* revert
7429ecb  and e91fd5a
2021-02-24 12:01:45 +01:00
Ștefan Talpalaru
5f226c97ec enable cross-compilation 2021-02-03 13:03:54 +07:00
andri lim
eebf730ccd
Merge pull request #14 from status-im/github_action
add github action script
2021-01-13 13:14:14 +07:00
jangko
5131fd9e53
add github action script 2021-01-13 11:21:32 +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
Eugene Kabanov
33b2303fc3
Merge pull request #10 from status-im/update-upstream
Update BearSSL to upstream version.
2020-07-06 16:25:59 +03:00
cheatfate
97910ecd7b
Update BearSSL to upstream version.
Update Mozilla certificates to 2020-06-24 version.
2020-07-06 16:22:05 +03:00
Jacek Sieka
108f580d95
Merge pull request #9 from nikitinator/master
update minimum required nim version
2020-07-06 11:54:52 +02:00
nikitincrime
a0380527f7
update minimum required nim version
7d2a18115b
here you use c_sizet, that was added in nim 1.2
2020-07-06 12:29:16 +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
cheatfate
8a9503b6df
Update BearSSL to latest version.
Update CA certificates to 2020-01-01.
Bump version to 0.1.4.
2020-02-14 12:29:54 +02:00
Yuriy Glukhov
02c575c844
Merge pull request #5 from status-im/effect-annotations
More rigorous effect annotations for all imported procs
2019-12-07 18:13:32 +02:00
Zahary Karadjov
c8e89349bc
More rigorous effect annotations for all imported procs 2019-12-07 15:40:03 +02:00
cheatfate
62414b0bdd
Missed actual fix. 2019-11-06 13:39:43 +02:00