Skip to content

Unsupported Algorithm Suite #208

Description

@dnovicki

Attempting to use decrypt() with cipherText originally encrypted using AWS Encryption SDK Java with Algorithm Suite (ALG_AES_256_GCM_IV12_TAG16_HKDF_SHA384_ECDSA_P384) throws the below error. Am I doing something wrong?

const keyring = new awsCrypto.KmsKeyringNode({ keyIds: ['<insert key>'] });
 const decryptedText = await awsCrypto.decrypt(
    keyring,
    cipherText
  );

While debugging suiteId in source, the UInt16 value is 16708 instead of intended 888

2019-09-12T20:14:38.764Z 6edd46cd-74ce-40b2-9a59-4d764d17d4b2 INFO Error: Unsupported algorithm suite.
at Object.needs (/var/task/node_modules/@aws-crypto/material-management/build/main/needs.js:29:15)
at Object.deserializeMessageHeader (/var/task/node_modules/@aws-crypto/serialize/build/main/deserialize_factory.js:67:27)
at ParseHeaderStream._transform (/var/task/node_modules/@aws-crypto/decrypt-node/build/main/parse_header_stream.js:37:40)
at ParseHeaderStream.Transform._read (/var/task/node_modules/readable-stream/lib/_stream_transform.js:177:10)
at ParseHeaderStream.Transform._write (/var/task/node_modules/readable-stream/lib/_stream_transform.js:164:83)
at doWrite (/var/task/node_modules/readable-stream/lib/_stream_writable.js:405:139)
at writeOrBuffer (/var/task/node_modules/readable-stream/lib/_stream_writable.js:394:5)
at ParseHeaderStream.Writable.write (/var/task/node_modules/readable-stream/lib/_stream_writable.js:303:11)
at Duplexify._write (/var/task/node_modules/duplexify/index.js:212:22)
at doWrite (/var/task/node_modules/readable-stream/lib/_stream_writable.js:405:139)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions