fix: extract keyed splits

This commit is contained in:
Karol Sójko
2022-07-05 14:20:21 +02:00
parent 32481dfe05
commit 36fc9caa2c
4 changed files with 14 additions and 4 deletions

View File

@@ -4,11 +4,9 @@ import {
EncryptedPayloadInterface, EncryptedPayloadInterface,
PayloadInterface, PayloadInterface,
} from '@standardnotes/models' } from '@standardnotes/models'
import { AbstractKeySplit } from './AbstractKeySplit'
import { EncryptionTypeSplit } from './EncryptionTypeSplit' import { EncryptionTypeSplit } from './EncryptionTypeSplit'
import { KeyedDecryptionSplit } from './KeyedDecryptionSplit'
export type KeyedEncryptionSplit = AbstractKeySplit<DecryptedPayloadInterface> import { KeyedEncryptionSplit } from './KeyedEncryptionSplit'
export type KeyedDecryptionSplit = AbstractKeySplit<EncryptedPayloadInterface>
export function CreateEncryptionSplitWithKeyLookup( export function CreateEncryptionSplitWithKeyLookup(
payloadSplit: EncryptionTypeSplit<DecryptedPayloadInterface>, payloadSplit: EncryptionTypeSplit<DecryptedPayloadInterface>,

View File

@@ -0,0 +1,5 @@
import { EncryptedPayloadInterface } from '@standardnotes/models'
import { AbstractKeySplit } from './AbstractKeySplit'
export type KeyedDecryptionSplit = AbstractKeySplit<EncryptedPayloadInterface>

View File

@@ -0,0 +1,5 @@
import { DecryptedPayloadInterface } from '@standardnotes/models'
import { AbstractKeySplit } from './AbstractKeySplit'
export type KeyedEncryptionSplit = AbstractKeySplit<DecryptedPayloadInterface>

View File

@@ -30,6 +30,8 @@ export * from './Split/AbstractKeySplit'
export * from './Split/EncryptionSplit' export * from './Split/EncryptionSplit'
export * from './Split/EncryptionTypeSplit' export * from './Split/EncryptionTypeSplit'
export * from './Split/Functions' export * from './Split/Functions'
export * from './Split/KeyedDecryptionSplit'
export * from './Split/KeyedEncryptionSplit'
export * from './Types/EncryptedParameters' export * from './Types/EncryptedParameters'
export * from './Types/ItemAuthenticatedData' export * from './Types/ItemAuthenticatedData'
export * from './Types/LegacyAttachedData' export * from './Types/LegacyAttachedData'