File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import { create , toJsonString } from '@bufbuild/protobuf' ;
2- import { UnsignedRewrapRequest_WithPolicyRequestSchema , UnsignedRewrapRequestSchema } from '../platform/kas/kas_pb.js' ;
2+ import {
3+ UnsignedRewrapRequest_WithPolicyRequestSchema ,
4+ UnsignedRewrapRequestSchema ,
5+ } from '../platform/kas/kas_pb.js' ;
36import { generateKeyPair , keyAgreement } from '../nanotdf-crypto/index.js' ;
47import getHkdfSalt from './helpers/getHkdfSalt.js' ;
58import DefaultParams from './models/DefaultParams.js' ;
Original file line number Diff line number Diff line change @@ -808,8 +808,8 @@ async function unwrapKey({
808808 ...( keySplitInfo . type && { keyType : keySplitInfo . type } ) ,
809809 ...( keySplitInfo . url && { kasUrl : keySplitInfo . url } ) ,
810810 ...( keySplitInfo . protocol && { protocol : keySplitInfo . protocol } ) ,
811- ...( keySplitInfo . wrappedKey && {
812- wrappedKey : new Uint8Array ( base64 . decodeArrayBuffer ( keySplitInfo . wrappedKey ) )
811+ ...( keySplitInfo . wrappedKey && {
812+ wrappedKey : new Uint8Array ( base64 . decodeArrayBuffer ( keySplitInfo . wrappedKey ) ) ,
813813 } ) ,
814814 ...( keySplitInfo . policyBinding && { policyBinding : keySplitInfo . policyBinding } ) ,
815815 ...( keySplitInfo . kid && { kid : keySplitInfo . kid } ) ,
You canβt perform that action at this time.
0 commit comments