1 import type { SessionKey } from '@proton/crypto';
3 import { AES256 } from '../constants';
4 import { base64StringToUint8Array } from '../helpers/encoding';
6 export const toSessionKey = (decryptedKeyPacket: string): SessionKey => {
7 return { algorithm: AES256, data: base64StringToUint8Array(decryptedKeyPacket) };