Stream cipher interface. We’re basically copying the interface from
nsICryptoHash interface.
Initialize a stream cipher.
aKey | nsIKeyObject |
Initialize a stream cipher with an initialization vector.
aKey | nsIKeyObject |
aIV | the initialization vector |
aIVLen | the length of the initialization vector |
Update from an array of bytes.
Update from a stream.
A more script friendly method (not in nsICryptoHash interface).
aASCII | if true then the returned value is a base-64 encoded string. if false, then the returned value is binary data. |
Discard aLen bytes of the keystream.
These days 1536 is considered a decent amount to drop to get
the key state warmed-up enough for secure usage.