Handle additional errors in attachment_channel
This commit is contained in:
parent
07195f4096
commit
11a4b32270
5 changed files with 18 additions and 10 deletions
|
@ -6,6 +6,7 @@ import Long from 'long';
|
|||
import { HKDF } from '@signalapp/libsignal-client';
|
||||
|
||||
import * as Bytes from './Bytes';
|
||||
import { Crypto } from './context/Crypto';
|
||||
import { calculateAgreement, generateKeyPair } from './Curve';
|
||||
import { HashType, CipherType, UUID_BYTE_SIZE } from './types/Crypto';
|
||||
import { ProfileDecryptError } from './types/errors';
|
||||
|
@ -734,7 +735,7 @@ export function decryptProfileName(
|
|||
// SignalContext APIs
|
||||
//
|
||||
|
||||
const { crypto } = globalThis.window?.SignalContext ?? {};
|
||||
const crypto = globalThis.window?.SignalContext.crypto || new Crypto();
|
||||
|
||||
export function sign(key: Uint8Array, data: Uint8Array): Uint8Array {
|
||||
return crypto.sign(key, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue