Skip to content

Commit 2e1a778

Browse files
committed
more Node API compliance
1 parent fd1e4b7 commit 2e1a778

2 files changed

Lines changed: 7 additions & 17 deletions

File tree

packages/react-native-quick-crypto/src/cipher.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,9 @@ export function createCipheriv(
284284
options as Record<string, TransformOptions>,
285285
);
286286
}
287+
288+
export const cipherExports = {
289+
createCipheriv,
290+
createDecipheriv,
291+
getCiphers,
292+
};

packages/react-native-quick-crypto/src/index.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Buffer } from '@craftzdog/react-native-buffer';
33

44
// API imports
55
import * as keys from './keys';
6-
import * as cipher from './cipher';
6+
import { cipherExports as cipher } from './cipher';
77
import * as ed from './ed';
88
import * as pbkdf2 from './pbkdf2';
99
import * as random from './random';
@@ -16,27 +16,11 @@ import * as utils from './utils';
1616
* See `docs/implementation-coverage.md` for status.
1717
*/
1818
const QuickCrypto = {
19-
// createHmac,
20-
// Hmac: createHmac,
21-
// Hash: createHash,
22-
// createHash,
23-
// publicEncrypt,
24-
// publicDecrypt,
25-
// privateDecrypt,
26-
// generateKey,
27-
// generateKeySync,
28-
// createSign,
29-
// createVerify,
30-
// subtle,
31-
// constants,
3219
...keys,
3320
...cipher,
3421
...ed,
3522
...pbkdf2,
3623
...random,
37-
// getCiphers,
38-
// getHashes,
39-
// webcrypto,
4024
...utils,
4125
};
4226

0 commit comments

Comments
 (0)