Skip to content

Commit

Permalink
Removed encryption types
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dheyman committed Nov 20, 2024
1 parent d1f5a87 commit d368d84
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
21 changes: 20 additions & 1 deletion lib/file_transfer_agent/encrypt_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,32 @@ const fs = require('fs');
const Logger = require('../logger');
const AES_BLOCK_SIZE = 128;
const blockSize = parseInt(AES_BLOCK_SIZE / 8); // in bytes
const { AES_ECB, AES_GCM, AES_CBC } = require('./encryption_types');

const QUERY_STAGE_MASTER_KEY = 'queryStageMasterKey';
const BASE64 = 'base64';
const DEFAULT_AAD = Buffer.from('');
const AUTH_TAG_LENGTH_IN_BYTES = 16;

const AES_CBC = {
cipherName: function (keySizeInBytes) {
return `aes-${keySizeInBytes * 8}-cbc`;
},
ivSize: 16
};

const AES_ECB = {
cipherName: function (keySizeInBytes) {
return `aes-${keySizeInBytes * 8}-ecb`;
}
};

const AES_GCM = {
cipherName: function (keySizeInBytes) {
return `aes-${keySizeInBytes * 8}-gcm`;
},
ivSize: 12
};

// Material Descriptor
function MaterialDescriptor(smkId, queryId, keySize) {
return {
Expand Down
25 changes: 0 additions & 25 deletions lib/file_transfer_agent/encryption_types.js

This file was deleted.

0 comments on commit d368d84

Please sign in to comment.