Page MenuHomePhorge

D15087.1765045780.diff
No OneTemporary

Size
710 B
Referenced Files
None
Subscribers
None

D15087.1765045780.diff

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

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)

Event Timeline