Skip to content

Commit 0a88709

Browse files
authored
feat: chacha20 + chacha20-poly1305 + tests (#711)
1 parent 6fc83e8 commit 0a88709

18 files changed

+787
-148
lines changed

bun.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
},
2222
"example": {
2323
"name": "react-native-quick-crypto-example",
24-
"version": "1.0.0-beta.15",
24+
"version": "1.0.0-beta.16",
2525
"dependencies": {
26-
"@craftzdog/react-native-buffer": "6.0.5",
26+
"@craftzdog/react-native-buffer": "6.1.0",
2727
"@noble/ciphers": "^1.3.0",
2828
"@noble/curves": "^1.7.0",
2929
"@noble/hashes": "^1.5.0",
@@ -39,8 +39,8 @@
3939
"react-native": "0.76.9",
4040
"react-native-bouncy-checkbox": "4.1.2",
4141
"react-native-nitro-modules": "0.25.2",
42-
"react-native-quick-base64": "2.1.2",
43-
"react-native-quick-crypto": "1.0.0-beta.15",
42+
"react-native-quick-base64": "2.2.0",
43+
"react-native-quick-crypto": "1.0.0-beta.16",
4444
"react-native-safe-area-context": "5.1.0",
4545
"react-native-screens": "3.35.0",
4646
"react-native-vector-icons": "^10.1.0",
@@ -74,11 +74,11 @@
7474
},
7575
"packages/react-native-quick-crypto": {
7676
"name": "react-native-quick-crypto",
77-
"version": "1.0.0-beta.15",
77+
"version": "1.0.0-beta.16",
7878
"dependencies": {
79-
"@craftzdog/react-native-buffer": "6.0.5",
79+
"@craftzdog/react-native-buffer": "6.1.0",
8080
"events": "3.3.0",
81-
"react-native-quick-base64": "2.1.2",
81+
"react-native-quick-base64": "2.2.0",
8282
"readable-stream": "4.5.2",
8383
"util": "0.12.5",
8484
},
@@ -372,7 +372,7 @@
372372

373373
"@conventional-changelog/git-client": ["@conventional-changelog/[email protected]", "", { "dependencies": { "@types/semver": "^7.5.5", "semver": "^7.5.2" }, "peerDependencies": { "conventional-commits-filter": "^5.0.0", "conventional-commits-parser": "^6.0.0" }, "optionalPeers": ["conventional-commits-filter", "conventional-commits-parser"] }, "sha512-PJEqBwAleffCMETaVm/fUgHldzBE35JFk3/9LL6NUA5EXa3qednu+UT6M7E5iBu3zIQZCULYIiZ90fBYHt6xUw=="],
374374

375-
"@craftzdog/react-native-buffer": ["@craftzdog/react-native-buffer@6.0.5", "", { "dependencies": { "ieee754": "^1.2.1", "react-native-quick-base64": "^2.0.5" } }, "sha512-Av+YqfwA9e7jhgI9GFE/gTpwl/H+dRRLmZyJPOpKTy107j9Oj7oXlm3/YiMNz+C/CEGqcKAOqnXDLs4OL6AAFw=="],
375+
"@craftzdog/react-native-buffer": ["@craftzdog/react-native-buffer@6.1.0", "", { "dependencies": { "ieee754": "^1.2.1", "react-native-quick-base64": "^2.0.5" } }, "sha512-lJXdjZ7fTllLbzDrwg/FrJLjQ5sBcAgwcqgAB6OPpXTHdCenEhHZblQpfmBLLe7/S7m0yKXL3kN3jpwOEkpjGg=="],
376376

377377
"@eslint-community/eslint-utils": ["@eslint-community/[email protected]", "", { "dependencies": { "eslint-visitor-keys": "^3.3.0" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA=="],
378378

@@ -1890,7 +1890,7 @@
18901890

18911891
"react-native-nitro-modules": ["[email protected]", "", { "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-rL+X0LzB8BXvpdrUE/+oZ5v4qS/1nZIq0M8Uctbvqq2q53sVCHX4995ffT8+lGIJe/f0QcBvvrEeXtBPl86iwQ=="],
18921892

1893-
"react-native-quick-base64": ["react-native-quick-base64@2.1.2", "", { "dependencies": { "base64-js": "^1.5.1" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-xghaXpWdB0ji8OwYyo0fWezRroNxiNFCNFpGUIyE7+qc4gA/IGWnysIG5L0MbdoORv8FkTKUvfd6yCUN5R2VFA=="],
1893+
"react-native-quick-base64": ["react-native-quick-base64@2.2.0", "", { "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-r7/BRsRl8QKEhS0JsHW6QX9+8LrC6NNWlwNnBnZ69h2kbcfABYsUILT71obrs9fqElEIMzuYSI5aHID955akyQ=="],
18941894

18951895
"react-native-quick-crypto": ["react-native-quick-crypto@workspace:packages/react-native-quick-crypto"],
18961896

12.8 KB
Loading

docs/test_suite_results_ios.png

-8.2 KB
Loading

example/ios/Podfile.lock

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,27 +1335,8 @@ PODS:
13351335
- ReactCommon/turbomodule/bridging
13361336
- ReactCommon/turbomodule/core
13371337
- Yoga
1338-
- react-native-quick-base64 (2.1.2):
1339-
- DoubleConversion
1340-
- glog
1341-
- hermes-engine
1342-
- RCT-Folly (= 2024.10.14.00)
1343-
- RCTRequired
1344-
- RCTTypeSafety
1338+
- react-native-quick-base64 (2.2.0):
13451339
- React-Core
1346-
- React-debug
1347-
- React-Fabric
1348-
- React-featureflags
1349-
- React-graphics
1350-
- React-ImageManager
1351-
- React-NativeModulesApple
1352-
- React-RCTFabric
1353-
- React-rendererdebug
1354-
- React-utils
1355-
- ReactCodegen
1356-
- ReactCommon/turbomodule/bridging
1357-
- ReactCommon/turbomodule/core
1358-
- Yoga
13591340
- react-native-safe-area-context (5.1.0):
13601341
- DoubleConversion
13611342
- glog
@@ -2025,7 +2006,7 @@ SPEC CHECKSUMS:
20252006
React-logger: c4052eb941cca9a097ef01b59543a656dc088559
20262007
React-Mapbuffer: 33546a3ebefbccb8770c33a1f8a5554fa96a54de
20272008
React-microtasksnativemodule: d80ff86c8902872d397d9622f1a97aadcc12cead
2028-
react-native-quick-base64: f923222b05cd066ac7f89f54457215fc79cc3760
2009+
react-native-quick-base64: 17dc4b8daee50e680d5f57cc3ee6773b6ee0110a
20292010
react-native-safe-area-context: 60695fadbcee6ab51b28b835abb10ea983dbe181
20302011
React-nativeconfig: 8efdb1ef1e9158c77098a93085438f7e7b463678
20312012
React-NativeModulesApple: cebca2e5320a3d66e123cade23bd90a167ffce5e

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build:ios": "cd ios && xcodebuild -workspace QuickCrytpExample.xcworkspace -scheme QuickCrytpExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
2121
},
2222
"dependencies": {
23-
"@craftzdog/react-native-buffer": "6.0.5",
23+
"@craftzdog/react-native-buffer": "6.1.0",
2424
"@noble/ciphers": "^1.3.0",
2525
"@noble/curves": "^1.7.0",
2626
"@noble/hashes": "^1.5.0",
@@ -36,7 +36,7 @@
3636
"react-native": "0.76.9",
3737
"react-native-bouncy-checkbox": "4.1.2",
3838
"react-native-nitro-modules": "0.25.2",
39-
"react-native-quick-base64": "2.1.2",
39+
"react-native-quick-base64": "2.2.0",
4040
"react-native-quick-crypto": "1.0.0-beta.16",
4141
"react-native-safe-area-context": "5.1.0",
4242
"react-native-screens": "3.35.0",

example/src/hooks/useTestsList.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import type { TestSuites } from '../types/tests';
33
import { TestsContext } from '../tests/util';
44

55
import '../tests/cipher/cipher_tests';
6+
import '../tests/cipher/chacha_tests';
7+
import '../tests/cipher/xsalsa20_tests';
68
import '../tests/ed25519/ed25519_tests';
79
import '../tests/hash/hash_tests';
810
import '../tests/hmac/hmac_tests';

0 commit comments

Comments
 (0)