Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32163246
D15087.1765045780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
710 B
Referenced Files
None
Subscribers
None
D15087.1765045780.diff
View Options
diff --git a/web/crypto/aes-gcm-crypto-utils.js b/web/crypto/aes-gcm-crypto-utils.js
--- a/web/crypto/aes-gcm-crypto-utils.js
+++ b/web/crypto/aes-gcm-crypto-utils.js
@@ -24,8 +24,19 @@
export const cryptoKeyValidator: TInterface<CryptoKey> = tShape<CryptoKey>({
algorithm: t.Object,
extractable: t.Boolean,
- type: t.String,
- usages: t.list(t.String),
+ type: t.enums.of(['secret', 'public', 'private']),
+ usages: t.list(
+ t.enums.of([
+ 'encrypt',
+ 'decrypt',
+ 'sign',
+ 'verify',
+ 'deriveKey',
+ 'deriveBits',
+ 'wrapKey',
+ 'unwrapKey',
+ ]),
+ ),
});
export const subtleCrypto$JsonWebKeyValidator: TInterface<SubtleCrypto$JsonWebKey> =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:29 PM (13 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839406
Default Alt Text
D15087.1765045780.diff (710 B)
Attached To
Mode
D15087: [Flow262][skip-ci] Fix cryptoKeyValidator
Attached
Detach File
Event Timeline
Log In to Comment