Files
element-call-Github/sdk/src/encryption.ts
T
Timo K. 31eafb394b 7000 loc COPIED from element call
They are copied for now but will be removed from element call once it
adopts the sdk. Those are no real line additions.
2026-10-08 13:53:56 +02:00

28 lines
551 B
TypeScript

/*
Copyright 2026 Element Creations Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
*/
export enum E2eeType {
NONE = 0,
PER_PARTICIPANT = 1,
SHARED_KEY = 2,
}
export interface Unencrypted {
kind: E2eeType.NONE;
}
export interface SharedSecret {
kind: E2eeType.SHARED_KEY;
secret: string;
}
export interface PerParticipantE2EE {
kind: E2eeType.PER_PARTICIPANT;
}
export type EncryptionSystem = Unencrypted | SharedSecret | PerParticipantE2EE;