Stream cipher interface. We're basically copying the interface from nsICryptoHash interface.
[scriptable, uuid(1d507cd6-1630-4710-af1b-4012dbcc514c)]
Methods
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.
@param aASCII if true then the returned value is a base-64
encoded string. if false, then the returned value is
binary data.
Initialize a stream cipher. @param aKey nsIKeyObject
Initialize a stream cipher with an initialization vector. @param aKey nsIKeyObject @param aIV the initialization vector @param aIVLen the length of the initialization vector
void
initWithIV(in nsIKeyObject aKey, [const, array, size_is(aIVLen)] in octet aIV, in unsigned long aIVLen)
Update from an array of bytes.
Update from a stream.