Use libsignal PassThroughs instead of our own

This commit is contained in:
Scott Nonnenberg 2024-10-29 08:24:20 +10:00 committed by GitHub
parent fa25d5aaf8
commit 1b8be6a3d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 218 deletions

View file

@ -12,8 +12,10 @@ import { isNumber } from 'lodash';
import { ensureFile } from 'fs-extra';
import {
chunkSizeInBytes,
DigestingPassThrough,
everyNthByte,
inferChunkSize,
ValidatingPassThrough,
} from '@signalapp/libsignal-client/dist/incremental_mac';
import type { ChunkSizeChoice } from '@signalapp/libsignal-client/dist/incremental_mac';
@ -40,8 +42,6 @@ import { isNotNil } from './util/isNotNil';
import { missingCaseError } from './util/missingCaseError';
import { getEnvironment, Environment } from './environment';
import { toBase64 } from './Bytes';
import { DigestingPassThrough } from './util/DigestingPassThrough';
import { ValidatingPassThrough } from './util/ValidatingPassThrough';
// This file was split from ts/Crypto.ts because it pulls things in from node, and
// too many things pull in Crypto.ts, so it broke storybook.