While decryption am getting the half of the encrypted data only... compared to the .NET BouncyCastle GCM encryption...
In BouncyCastle am getting encrypted data having length 32 whereas in the jsCrypto am getting 16...
i cant get the references in the document that provided either in npm js or in the gist...
Here is the configuration...
let encryptedData = jsCrypto.AES.encrypt(
msg,
key,{
iv:iv,
mode: jsCrypto.mode.GCM,
padding: jsCrypto.pad.NoPadding
}
);
While decryption am getting the half of the encrypted data only... compared to the .NET BouncyCastle GCM encryption... In BouncyCastle am getting encrypted data having length 32 whereas in the jsCrypto am getting 16... i cant get the references in the document that provided either in npm js or in the gist...
Here is the configuration... let encryptedData = jsCrypto.AES.encrypt( msg, key,{ iv:iv, mode: jsCrypto.mode.GCM, padding: jsCrypto.pad.NoPadding } );