diegomrsantos
d4e2f555c8
gcc 14 support ( #62 )
...
* rsaKeygenGetDefault test
* add ubuntu 24 and gcc 14 to ci
* use PrngClassPointerConst for rsa keygen
* fix test_brssl
* add comment about ubuntu 24
* define and use ConstPtrPtrHashClass
* remove previous ecKeygen
* remove previous x509NoanchorInit
* improve test
* add ecKeygen test
* add x509NoanchorInit test
* remove commented code
* rename target to linux-gcc-14
* test already exists
* fix tests
2024-07-18 18:50:24 +03:00
Eugene Kabanov
554b464b34
Fix gcc-14 issues part 2. ( #61 )
...
* Fix recently discovered nim-2.0 gcc-14 issues.
* One more place to fix.
2024-06-27 01:42:04 +03:00
Eugene Kabanov
ff0b47ed80
Fix GCC-14 [-Wincompatible-pointer-types] issue. ( #58 )
...
* Fix GCC-14 [-Wincompatible-pointer-types] issue.
* Add more fixes.
* More fixes.
2024-06-02 06:42:27 +03:00
Eugene Kabanov
d81b37dc20
Bump cacert to version 2024-03-11. ( #57 )
2024-04-12 13:21:03 +02:00
jangko
d55d3a86d7
Switch to llvm-mingw in Windows CI
2023-09-14 10:49:20 +07: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
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
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
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
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
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
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
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
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
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
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
3552a8abfa
Rename BearSslError to SSLError.
2019-10-08 12:31:04 +03: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
Yuriy Glukhov
6e9ea2e77a
Initial commit (copied from nim-libp2p)
2019-09-30 21:23:06 +03:00