File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
buildKeyAccess ,
15
15
EncryptConfiguration ,
16
16
fetchKasPublicKey ,
17
+ loadTDFStream ,
17
18
unwrapHtml ,
18
19
validatePolicyObject ,
19
20
readStream ,
@@ -614,6 +615,11 @@ export class Client {
614
615
const policyJson = base64 . decode ( manifest . encryptionInformation . policy ) ;
615
616
return JSON . parse ( policyJson ) . uuid ;
616
617
}
618
+
619
+ async loadTDFStream ( { source } : { source : DecryptSource } ) {
620
+ const chunker = await makeChunkable ( source ) ;
621
+ return loadTDFStream ( chunker ) ;
622
+ }
617
623
}
618
624
619
625
export type { AuthProvider } ;
Original file line number Diff line number Diff line change @@ -876,7 +876,7 @@ export async function writeStream(cfg: EncryptConfiguration): Promise<DecoratedR
876
876
}
877
877
878
878
// load the TDF as a stream in memory, for further use in reading and key syncing
879
- async function loadTDFStream (
879
+ export async function loadTDFStream (
880
880
chunker : Chunker
881
881
) : Promise < { manifest : Manifest ; zipReader : ZipReader ; centralDirectory : CentralDirectory [ ] } > {
882
882
const zipReader = new ZipReader ( chunker ) ;
You can’t perform that action at this time.
0 commit comments