File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export async function encrypt (
63
63
{ suiteId, encryptionContext, frameLength = FRAME_LENGTH } : EncryptInput = { }
64
64
) : Promise < EncryptResult > {
65
65
/* Precondition: The frameLength must be less than the maximum frame size for browser encryption. */
66
- needs ( frameLength > 0 && Maximum . FRAME_SIZE >= frameLength , ' frameLength out of bounds' )
66
+ needs ( frameLength > 0 && Maximum . FRAME_SIZE >= frameLength , ` frameLength out of bounds: 0 > frameLength >= ${ Maximum . FRAME_SIZE } ` )
67
67
68
68
const backend = await getWebCryptoBackend ( )
69
69
if ( ! backend ) throw new Error ( 'No supported crypto backend' )
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export function encryptStream (
59
59
const { suiteId, context, frameLength = FRAME_LENGTH } = op
60
60
61
61
/* Precondition: The frameLength must be less than the maximum frame size Node.js stream. */
62
- needs ( frameLength > 0 && Maximum . FRAME_SIZE >= frameLength , ' frameLength out of bounds' )
62
+ needs ( frameLength > 0 && Maximum . FRAME_SIZE >= frameLength , ` frameLength out of bounds: 0 > frameLength >= ${ Maximum . FRAME_SIZE } ` )
63
63
64
64
/* If the cmm is a Keyring, wrap it with NodeDefaultCryptographicMaterialsManager. */
65
65
cmm = cmm instanceof KeyringNode
You can’t perform that action at this time.
0 commit comments