Commit Graph

45 Commits

Author SHA1 Message Date
Adam Fowler 38f673d9ab
Update CI (#3)
* Update CI

* change trigger
2022-05-21 10:19:45 +01:00
Adam Fowler af19b5b5af
Test against 3 latest versions of swift 2022-01-07 11:56:13 +00:00
Adam Fowler d2a42aa235 Update BoringSSL 2022-01-07 11:51:54 +00:00
Adam Fowler d728a4dc8d Update BoringSSL scripts 2022-01-07 11:47:17 +00:00
Adam Fowler 319bc317e5 Fix warning 2022-01-07 10:17:24 +00:00
Adam Fowler ca01a6fd4b
Update README.md 2020-08-02 11:34:41 +01:00
Adam Fowler 9d8902424b Removed BigNum.init<D: DataProtocol>(data: D) 2020-05-06 18:27:31 +01:00
Adam Fowler 9e1f69a207
Update README.md 2020-05-06 18:18:59 +01:00
Adam Fowler f00adf94f4
Use BoringSSL implementation of BIGNUM (#2)
Vendor limited section of BoringSSL instead of depending on OpenSSL libs.
Main reason for doing this was libressl BIGNUM don't always generate the correct values
Vendoring based on swift-crypto implementation
Remove support swift 5.0
2020-05-06 18:11:24 +01:00
Adam Fowler 7aa8e7c67d Added BigNum.init<D: ContiguousBytes>(bytes: D) 2020-05-04 12:19:15 +01:00
Adam Fowler dd4ec77ce0 Added swift 5.2, removed volume 2020-05-04 09:50:27 +01:00
Adam Fowler 3c53c10b49 Added BigNum.bytes() 2020-05-04 09:45:53 +01:00
Adam Fowler 2e2c8ca0ba package name change, for Xcode package resolution 2020-04-01 08:12:26 +01:00
Adam Fowler 133332918e Changed init(Data) to init<D: DataProtocol>(D) 2020-02-14 09:50:48 +00:00
Adam Fowler b9b08ccd16
Create LICENSE 2019-11-20 17:58:12 +00:00
Adam Fowler 3808e0f98a Merge branch 'master' of https://github.com/adam-fowler/big-num 2019-11-20 16:55:02 +00:00
Adam Fowler a98ae24dc2 Test every number from 1 to 1000 in factorial test 2019-11-20 16:54:59 +00:00
Adam Fowler e6c2d8ec19
Update README.md 2019-11-20 16:51:35 +00:00
Adam Fowler 0451d0a143
Update README.md 2019-11-20 16:49:43 +00:00
Adam Fowler d523721359
Update README.md 2019-11-20 16:26:10 +00:00
Adam Fowler d19d426cf0 Merge branch 'master' of https://github.com/adam-fowler/big-num 2019-11-20 16:16:35 +00:00
Adam Fowler 13a525256d Fixed factorial test 2019-11-20 16:16:24 +00:00
Adam Fowler db9da514ad
fixed cut and paste error in swift.yml 2019-11-20 16:10:29 +00:00
Adam Fowler 7fc83c6265 Add mutating arithmetic operators 2019-11-20 15:59:07 +00:00
Adam Fowler 2d00959f26 Added bit-wise operators
moved operation/operationWithCtx inside BigNum
2019-11-20 15:46:20 +00:00
Adam Fowler 561c8200c6 Store BIGNUM struct pointer as an OpaquePointer
OpenSSL 1.1 doesn't provide a complete BIGNUM type so UnsafeMutablePointer<BIGNUM> fails.

Have to do some conversion back and forward between UnsafeMutablePointer<_> to get this working on platforms that have a complete BIGNUM type
2019-11-20 15:18:32 +00:00
Adam Fowler b31b204fa9 Add performance test 2019-11-20 15:11:14 +00:00
Adam Fowler a5e701286b
Update README.md 2019-11-20 10:21:58 +00:00
Adam Fowler ea1a365aa6 Use MemoryLayout to get Int size 2019-11-20 09:50:11 +00:00
Adam Fowler 70d9e43370 Conform to ExpressibleByIntegerLiteral 2019-11-20 09:43:13 +00:00
Adam Fowler b297df01c1 Remove .swiftpm files 2019-11-20 09:01:47 +00:00
Adam Fowler ed6faf5a49
Added .swiftpm to .gitignore 2019-11-20 07:40:54 +00:00
Adam Fowler f73c2d1aca Added factorial test 2019-11-20 01:37:34 +00:00
Adam Fowler eec1799404 Use ex versions of prime functions 2019-11-20 01:25:21 +00:00
Adam Fowler b9d9f3c1b7 Added prime number generation 2019-11-20 01:18:54 +00:00
Adam Fowler 81255dc69e Added random number generators 2019-11-20 00:58:31 +00:00
Adam Fowler b4d55a0916 Added GCD, Shifting, hex/dec init() will fail if function fails 2019-11-20 00:26:35 +00:00
Adam Fowler ed883a9bfc Fixed swift 5.0 tests 2019-11-19 23:55:21 +00:00
Adam Fowler c5c2372dd9 Changed modulus interface 2019-11-19 21:45:58 +00:00
Adam Fowler 04618cfef4 Merge branch 'master' of https://github.com/adam-fowler/BigNum 2019-11-19 21:36:07 +00:00
Adam Fowler bc8d65389d Rename OpenSSL module 2019-11-19 21:35:54 +00:00
Adam Fowler f82e8e777f
Merge pull request #1 from adam-fowler/github-actions
Github actions
2019-11-19 20:30:56 +00:00
Adam Fowler 7cf4d5216d Swift 5.0 2019-11-19 20:30:01 +00:00
Adam Fowler c032f1adbf
Create swift.yml 2019-11-19 20:28:37 +00:00
Adam Fowler 71efe2598f Initial commit, all the basic commands added 2019-11-19 20:25:07 +00:00