download
raw
554 Bytes
import { DecrypterAesMode } from '../crypt/decrypter-aes-mode';
export function isFullSegmentEncryption(method: string): boolean {
return (
method === 'AES-128' || method === 'AES-256' || method === 'AES-256-CTR'
);
}
export function getAesModeFromFullSegmentMethod(
method: string,
): DecrypterAesMode {
switch (method) {
case 'AES-128':
case 'AES-256':
return DecrypterAesMode.cbc;
case 'AES-256-CTR':
return DecrypterAesMode.ctr;
default:
throw new Error(`invalid full segment method ${method}`);
}
}

Xet Storage Details

Size:
554 Bytes
·
Xet hash:
35fb99811742e93e112bb3885fd2f3d376dcd03544f0267e9f7107fc14e54af2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.