fix: extract keyed splits
This commit is contained in:
@@ -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>,
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { EncryptedPayloadInterface } from '@standardnotes/models'
|
||||||
|
|
||||||
|
import { AbstractKeySplit } from './AbstractKeySplit'
|
||||||
|
|
||||||
|
export type KeyedDecryptionSplit = AbstractKeySplit<EncryptedPayloadInterface>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { DecryptedPayloadInterface } from '@standardnotes/models'
|
||||||
|
|
||||||
|
import { AbstractKeySplit } from './AbstractKeySplit'
|
||||||
|
|
||||||
|
export type KeyedEncryptionSplit = AbstractKeySplit<DecryptedPayloadInterface>
|
||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user