Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/implementation-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ These algorithms provide quantum-resistant cryptography.
* βœ… `crypto.getHashes()`
* βœ… `crypto.getRandomValues(typedArray)`
* ❌ `crypto.hash(algorithm, data[, options])`
* ❌ `crypto.hkdf(digest, ikm, salt, info, keylen, callback)`
* ❌ `crypto.hkdfSync(digest, ikm, salt, info, keylen)`
* βœ… `crypto.hkdf(digest, ikm, salt, info, keylen, callback)`
* βœ… `crypto.hkdfSync(digest, ikm, salt, info, keylen)`
* βœ… `crypto.pbkdf2(password, salt, iterations, keylen, digest, callback)`
* βœ… `crypto.pbkdf2Sync(password, salt, iterations, keylen, digest)`
* βœ… `crypto.privateDecrypt(privateKey, buffer)`
Expand Down Expand Up @@ -282,14 +282,14 @@ These algorithms provide quantum-resistant cryptography.
| `ECDH` | ❌ |
| `X25519` | βœ… |
| `X448` | βœ… |
| `HKDF` | ❌ |
| `HKDF` | βœ… |
| `PBKDF2` | βœ… |

## `subtle.deriveKey`
| Algorithm | Status |
| --------- | :----: |
| `ECDH` | ❌ |
| `HKDF` | ❌ |
| `HKDF` | βœ… |
| `PBKDF2` | βœ… |
| `X25519` | βœ… |
| `X448` | βœ… |
Expand Down Expand Up @@ -390,7 +390,7 @@ These algorithms provide quantum-resistant cryptography.
| `ECDSA` | βœ… | βœ… | βœ… | βœ… | | βœ… | |
| `Ed25519` | βœ… | βœ… | ❌ | ❌ | | ❌ | |
| `Ed448` | βœ… | βœ… | ❌ | ❌ | | ❌ | |
| `HKDF` | | | | ❌ | ❌ | | |
| `HKDF` | | | | βœ… | ❌ | | |
| `HMAC` | | | βœ… | βœ… | βœ… | | |
| `ML-DSA-44` | βœ… | βœ… | βœ… | | | βœ… | βœ… |
| `ML-DSA-65` | βœ… | βœ… | βœ… | | | βœ… | βœ… |
Expand Down
20 changes: 18 additions & 2 deletions example/index.ts
Comment thread
athexweb3 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,24 @@ if (typeof global.structuredClone === 'undefined') {
import 'event-target-polyfill';

// readable-stream
// @ts-expect-error - although process.version is readonly, we're setting it for readable-stream
global.process.version = 'v22.0.0';
if (typeof global.process !== 'undefined') {
const descriptor = Object.getOwnPropertyDescriptor(global.process, 'version');
if (!descriptor || descriptor.writable || descriptor.configurable) {
try {
Object.defineProperty(global.process, 'version', {
value: 'v22.0.0',
writable: true,
enumerable: true,
configurable: true,
});
} catch (e) {
console.warn('Failed to define process.version:', e);
}
}
} else {
// @ts-expect-error - process is not defined
global.process = { version: 'v22.0.0' };
}

import { AppRegistry } from 'react-native';
import App from './src/App';
Expand Down
Loading
Loading