@@ -16,7 +16,6 @@ import {
16
16
tdfSpecVersion ,
17
17
OpenTDF ,
18
18
DecoratedStream ,
19
- isPublicKeyAlgorithm ,
20
19
} from '@opentdf/sdk' ;
21
20
import { CLIError , Level , log } from './logger.js' ;
22
21
import { webcrypto } from 'crypto' ;
@@ -175,12 +174,6 @@ async function parseReadOptions(argv: Partial<mainArgs>): Promise<ReadOptions> {
175
174
argv . assertionVerificationKeys
176
175
) ;
177
176
}
178
- if ( argv . rewrapKeyType ?. length ) {
179
- if ( ! isPublicKeyAlgorithm ( argv . rewrapKeyType ) ) {
180
- throw new CLIError ( 'CRITICAL' , `Unsupported rewrap key algorithm: [${ argv . rewrapKeyType } ]` ) ;
181
- }
182
- r . wrappingKeyAlgorithm = argv . rewrapKeyType ;
183
- }
184
177
if ( argv . concurrencyLimit ) {
185
178
r . concurrencyLimit = argv . concurrencyLimit ;
186
179
} else {
@@ -279,12 +272,6 @@ async function parseCreateZTDFOptions(argv: Partial<mainArgs>): Promise<CreateZT
279
272
if ( argv . assertions ?. length ) {
280
273
c . assertionConfigs = await parseAssertionConfig ( argv . assertions ) ;
281
274
}
282
- if ( argv . encapKeyType ?. length ) {
283
- if ( ! isPublicKeyAlgorithm ( argv . encapKeyType ) ) {
284
- throw new CLIError ( 'CRITICAL' , `Unsupported rewrap key algorithm: [${ argv . encapKeyType } ]` ) ;
285
- }
286
- c . wrappingKeyAlgorithm = argv . encapKeyType ;
287
- }
288
275
if ( argv . mimeType ?. length ) {
289
276
if ( argv . mimeType && / ^ [ a - z ] + \/ [ a - z 0 - 9 - + .] + $ / . test ( argv . mimeType ) ) {
290
277
c . mimeType = argv . mimeType as `${string } /${string } `;
@@ -467,13 +454,6 @@ export const handleArgs = (args: string[]) => {
467
454
description : 'Container format' ,
468
455
default : 'nano' ,
469
456
} ,
470
- encapKeyType : {
471
- alias : 'encapsulation-algorithm' ,
472
- group : 'Encrypt Options:' ,
473
- desc : 'Key type for wrapping keys' ,
474
- type : 'string' ,
475
- default : 'rsa:2048' ,
476
- } ,
477
457
policyBinding : {
478
458
group : 'Encrypt Options:' ,
479
459
choices : bindingTypes ,
@@ -486,13 +466,6 @@ export const handleArgs = (args: string[]) => {
486
466
type : 'string' ,
487
467
default : '' ,
488
468
} ,
489
- rewrapKeyType : {
490
- alias : 'rewrap-encapsulation-algorithm' ,
491
- group : 'Decrypt Options:' ,
492
- desc : 'Key type for rewrap' ,
493
- type : 'string' ,
494
- default : 'rsa:2048' ,
495
- } ,
496
469
userId : {
497
470
group : 'Encrypt Options:' ,
498
471
type : 'string' ,
0 commit comments