Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_flush (callback: Function) {
if (this._signer) {
const signature = this._signer.awsCryptoSign()
this.push(serializeSignatureInfo(signature))
}
callback()
}
}
bodyContent.push(frameHeader, cipherBufferAndAuthTag)
}
const result = concatBuffers(
header,
headerAuthIv,
headerAuthTag,
...bodyContent
)
dispose()
if (typeof subtleSign === 'function') {
const signatureArrayBuffer = await subtleSign(result)
const derSignature = raw2der(new Uint8Array(signatureArrayBuffer), material.suite)
const signatureInfo = serializeSignatureInfo(derSignature)
return { result: concatBuffers(result, signatureInfo), messageHeader }
} else {
return { result: result, messageHeader }
}
}