MatrixAI/js-encryptedfs

Crypto - initiVector Variable Length

Closed this issue · 0 comments

If an initVector is not provided to the Crypto class upon initialisation, a random vector is generated of length 16 bytes. Should this be variable length? Plausibly one could assume this functionality is already available to users who specify their own initiVector but there are methods that cannot be changed. My suggestion is to use the length of the existing initVector to drive any further creation of initVectors, this lets the user control the initVector length.