ente/src/types.ts

18 lines
510 B
TypeScript
Raw Normal View History

2021-04-02 04:03:00 +00:00
export interface KeyAttributes {
kekSalt: string;
encryptedKey: string;
keyDecryptionNonce: string;
opsLimit: number;
memLimit: number;
2021-04-01 13:15:00 +00:00
publicKey: string;
encryptedSecretKey: string;
secretKeyDecryptionNonce: string;
2021-04-05 08:01:39 +00:00
masterKeyEncryptedWithRecoveryKey: string;
masterKeyDecryptionNonce: string;
recoveryKeyEncryptedWithMasterKey: string;
recoveryKeyDecryptionNonce: string;
}
2021-03-21 14:18:38 +00:00
export const ENCRYPTION_CHUNK_SIZE = 4 * 1024 * 1024;
export const GAP_BTW_TILES = 4;