react-native-quick-crypto 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,7 +123,9 @@ Pod::Spec.new do |s|
123
123
  "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES",
124
124
  # Set C++ standard to C++20
125
125
  "CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
126
- "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES"
126
+ "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
127
+ # Exclude ARM NEON source when building x86_64 simulator (no NEON support).
128
+ "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=x86_64]" => "deps/blake3/c/blake3_neon.c"
127
129
  }
128
130
 
129
131
  # Add cpp subdirectories to header search paths
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  <a href="https://margelo.com">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="./docs/img/banner-dark.png" />
4
- <source media="(prefers-color-scheme: light)" srcset="./docs/img/banner-light.png" />
5
- <img alt="react-native-quick-crypto" src="./docs/img/banner-light.png" />
3
+ <source media="(prefers-color-scheme: dark)" srcset="./.docs/img/banner-dark.png" />
4
+ <source media="(prefers-color-scheme: light)" srcset="./.docs/img/banner-light.png" />
5
+ <img alt="react-native-quick-crypto" src="./.docs/img/banner-light.png" />
6
6
  </picture>
7
7
  </a>
8
8
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  A fast implementation of Node's `crypto` module.
12
12
 
13
- > Note: This version `1.x` completed a major refactor, porting to OpenSSL 3.6+, New Architecture, Bridgeless, and [`Nitro Modules`](https://github.com/mrousavy/react-native-nitro). It should be at or above feature-parity compared to the `0.x` version. Status, as always, will be represented in [implementation-coverage.md](../main/docs/implementation-coverage.md).
13
+ > Note: This version `1.x` completed a major refactor, porting to OpenSSL 3.6+, New Architecture, Bridgeless, and [`Nitro Modules`](https://github.com/mrousavy/react-native-nitro). It should be at or above feature-parity compared to the `0.x` version. Status, as always, will be represented in [implementation-coverage.md](./.docs/implementation-coverage.md).
14
14
 
15
15
  > Note: Minimum supported version of React Native is `0.75`. If you need to use earlier versions, please use `0.x` versions of this library.
16
16
 
@@ -46,7 +46,7 @@ There is a benchmark suite in the Example app in this repo that has benchmarks o
46
46
  ## Installation
47
47
 
48
48
  <h3>
49
- React Native  <a href="#"><img src="./docs/img/react-native.png" height="15" /></a>
49
+ React Native  <a href="#"><img src="./.docs/img/react-native.png" height="15" /></a>
50
50
  </h3>
51
51
 
52
52
  ```sh
@@ -55,7 +55,7 @@ cd ios && pod install
55
55
  ```
56
56
 
57
57
  <h3>
58
- Expo  <a href="#"><img src="./docs/img/expo.png" height="12" /></a>
58
+ Expo  <a href="#"><img src="./.docs/img/expo.png" height="12" /></a>
59
59
  </h3>
60
60
 
61
61
  ```sh
@@ -139,7 +139,7 @@ const hashed = QuickCrypto.createHash('sha256')
139
139
 
140
140
  ## Limitations
141
141
 
142
- Not all cryptographic algorithms are supported yet. See the [implementation coverage](./docs/implementation-coverage.md) document for more details. If you need a specific algorithm, please open a `feature request` issue and we'll see what we can do.
142
+ Not all cryptographic algorithms are supported yet. See the [implementation coverage](./.docs/implementation-coverage.md) document for more details. If you need a specific algorithm, please open a `feature request` issue and we'll see what we can do.
143
143
 
144
144
  ## Community Discord
145
145
 
@@ -153,6 +153,10 @@ Not all cryptographic algorithms are supported yet. See the [implementation cove
153
153
 
154
154
  See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
155
155
 
156
+ For more detailed guides, check out our documentation website:
157
+ - [Contributing Guide]([prod-docs]/docs/guides/contributing)
158
+ - [Writing Documentation]([prod-docs]/docs/guides/writing-documentation)
159
+
156
160
  ## License
157
161
 
158
162
  - react-native-quick-crypto is licensed under MIT.
@@ -4,7 +4,7 @@
4
4
  #include <cstring>
5
5
  #include <stdexcept>
6
6
 
7
- #include "Utils.hpp"
7
+ #include "QuickCryptoUtils.hpp"
8
8
 
9
9
  namespace margelo::nitro::crypto {
10
10
 
@@ -1,5 +1,5 @@
1
1
  #include "CCMCipher.hpp"
2
- #include "Utils.hpp"
2
+ #include "QuickCryptoUtils.hpp"
3
3
  #include <openssl/err.h>
4
4
  #include <openssl/evp.h>
5
5
  #include <stdexcept>
@@ -1,5 +1,5 @@
1
1
  #include "ChaCha20Cipher.hpp"
2
- #include "Utils.hpp"
2
+ #include "QuickCryptoUtils.hpp"
3
3
  #include <openssl/err.h>
4
4
  #include <openssl/evp.h>
5
5
  #include <stdexcept>
@@ -1,5 +1,5 @@
1
1
  #include "ChaCha20Poly1305Cipher.hpp"
2
- #include "Utils.hpp"
2
+ #include "QuickCryptoUtils.hpp"
3
3
  #include <openssl/err.h>
4
4
  #include <openssl/evp.h>
5
5
  #include <stdexcept>
@@ -1,5 +1,5 @@
1
1
  #include "GCMCipher.hpp"
2
- #include "Utils.hpp"
2
+ #include "QuickCryptoUtils.hpp"
3
3
  #include <openssl/err.h>
4
4
  #include <openssl/evp.h>
5
5
  #include <stdexcept>
@@ -6,7 +6,7 @@
6
6
  #include <vector>
7
7
 
8
8
  #include "HybridCipher.hpp"
9
- #include "Utils.hpp"
9
+ #include "QuickCryptoUtils.hpp"
10
10
 
11
11
  #include <openssl/err.h>
12
12
  #include <openssl/evp.h>
@@ -10,7 +10,7 @@
10
10
  #include "GCMCipher.hpp"
11
11
  #include "HybridCipherFactorySpec.hpp"
12
12
  #include "OCBCipher.hpp"
13
- #include "Utils.hpp"
13
+ #include "QuickCryptoUtils.hpp"
14
14
  #include "XSalsa20Cipher.hpp"
15
15
 
16
16
  namespace margelo::nitro::crypto {
@@ -1,6 +1,6 @@
1
1
  #include "HybridRsaCipher.hpp"
2
2
  #include "../keys/HybridKeyObjectHandle.hpp"
3
- #include "Utils.hpp"
3
+ #include "QuickCryptoUtils.hpp"
4
4
 
5
5
  #include <cstring>
6
6
  #include <openssl/err.h>
@@ -3,7 +3,7 @@
3
3
  #include <openssl/err.h>
4
4
  #include <openssl/evp.h>
5
5
 
6
- #include "Utils.hpp"
6
+ #include "QuickCryptoUtils.hpp"
7
7
  #include <cstdio>
8
8
  #include <iomanip>
9
9
 
@@ -2,7 +2,7 @@
2
2
  #include <stdexcept> // For std::runtime_error
3
3
 
4
4
  #include "NitroModules/ArrayBuffer.hpp"
5
- #include "Utils.hpp"
5
+ #include "QuickCryptoUtils.hpp"
6
6
  #include "XSalsa20Cipher.hpp"
7
7
 
8
8
  namespace margelo::nitro::crypto {
@@ -21,7 +21,7 @@
21
21
  #endif
22
22
 
23
23
  #include "HybridEcKeyPair.hpp"
24
- #include "Utils.hpp"
24
+ #include "QuickCryptoUtils.hpp"
25
25
 
26
26
  namespace margelo::nitro::crypto {
27
27
 
@@ -6,7 +6,7 @@
6
6
  #include <string>
7
7
 
8
8
  #include "HybridEcKeyPairSpec.hpp"
9
- #include "Utils.hpp"
9
+ #include "QuickCryptoUtils.hpp"
10
10
 
11
11
  namespace margelo::nitro::crypto {
12
12
 
@@ -4,7 +4,7 @@
4
4
  #include <string>
5
5
 
6
6
  #include "HybridEdKeyPairSpec.hpp"
7
- #include "Utils.hpp"
7
+ #include "QuickCryptoUtils.hpp"
8
8
 
9
9
  namespace margelo::nitro::crypto {
10
10
 
@@ -7,7 +7,7 @@
7
7
  #include <vector>
8
8
 
9
9
  #include "HybridHash.hpp"
10
- #include "Utils.hpp"
10
+ #include "QuickCryptoUtils.hpp"
11
11
 
12
12
  namespace margelo::nitro::crypto {
13
13
 
@@ -8,7 +8,7 @@
8
8
  #include <vector>
9
9
 
10
10
  #include "HybridHkdf.hpp"
11
- #include "Utils.hpp"
11
+ #include "QuickCryptoUtils.hpp"
12
12
 
13
13
  namespace margelo::nitro::crypto {
14
14
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #include "../utils/base64.h"
5
5
  #include "HybridKeyObjectHandle.hpp"
6
- #include "Utils.hpp"
6
+ #include "QuickCryptoUtils.hpp"
7
7
  #include <openssl/bn.h>
8
8
  #include <openssl/ec.h>
9
9
  #include <openssl/evp.h>
@@ -1,5 +1,5 @@
1
1
  #include "KeyObjectData.hpp"
2
- #include "Utils.hpp"
2
+ #include "QuickCryptoUtils.hpp"
3
3
  #include <cstdio>
4
4
  #include <optional>
5
5
 
@@ -5,7 +5,7 @@
5
5
  #include "KFormatType.hpp"
6
6
  #include "KeyEncoding.hpp"
7
7
  #include "KeyType.hpp"
8
- #include "Utils.hpp"
8
+ #include "QuickCryptoUtils.hpp"
9
9
  #include <ncrypto.h>
10
10
 
11
11
  namespace margelo::nitro::crypto {
@@ -5,7 +5,7 @@
5
5
  #include <openssl/err.h>
6
6
  #include <openssl/pem.h>
7
7
 
8
- #include "Utils.hpp"
8
+ #include "QuickCryptoUtils.hpp"
9
9
 
10
10
  #if OPENSSL_VERSION_NUMBER >= 0x30500000L
11
11
  #define RNQC_HAS_ML_DSA 1
@@ -1,5 +1,5 @@
1
1
  #include "HybridPbkdf2.hpp"
2
- #include "Utils.hpp"
2
+ #include "QuickCryptoUtils.hpp"
3
3
 
4
4
  namespace margelo::nitro::crypto {
5
5
 
@@ -2,7 +2,7 @@
2
2
  #include <openssl/rand.h>
3
3
 
4
4
  #include "HybridRandom.hpp"
5
- #include "Utils.hpp"
5
+ #include "QuickCryptoUtils.hpp"
6
6
 
7
7
  namespace margelo::nitro::crypto {
8
8
 
@@ -11,7 +11,7 @@
11
11
  #include <string>
12
12
 
13
13
  #include "HybridRsaKeyPair.hpp"
14
- #include "Utils.hpp"
14
+ #include "QuickCryptoUtils.hpp"
15
15
 
16
16
  namespace margelo::nitro::crypto {
17
17
 
@@ -6,7 +6,7 @@
6
6
  #include <vector>
7
7
 
8
8
  #include "HybridScrypt.hpp"
9
- #include "Utils.hpp"
9
+ #include "QuickCryptoUtils.hpp"
10
10
 
11
11
  namespace margelo::nitro::crypto {
12
12
 
@@ -1,8 +1,8 @@
1
1
  #include "HybridSignHandle.hpp"
2
2
 
3
3
  #include "../keys/HybridKeyObjectHandle.hpp"
4
+ #include "QuickCryptoUtils.hpp"
4
5
  #include "SignUtils.hpp"
5
- #include "Utils.hpp"
6
6
 
7
7
  #include <cstring>
8
8
  #include <openssl/err.h>
@@ -1,8 +1,8 @@
1
1
  #include "HybridVerifyHandle.hpp"
2
2
 
3
3
  #include "../keys/HybridKeyObjectHandle.hpp"
4
+ #include "QuickCryptoUtils.hpp"
4
5
  #include "SignUtils.hpp"
5
- #include "Utils.hpp"
6
6
 
7
7
  #include <cstring>
8
8
  #include <openssl/err.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-quick-crypto",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A fast implementation of Node's `crypto` module written in C/C++ JSI",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
File without changes