Once the cipher.final()
method has been called, the Cipher
object can no longer be used to encrypt data. Attempts to call cipher.final()
more than once will result in an error being thrown.
method
crypto.CipherCCM.final
@returns
Any remaining enciphered contents. If outputEncoding
is specified, a string is returned. If an outputEncoding
is not provided, a Buffer is returned.
outputEncoding: BufferEncoding
): string;
Once the cipher.final()
method has been called, the Cipher
object can no longer be used to encrypt data. Attempts to call cipher.final()
more than once will result in an error being thrown.
@param outputEncoding
The encoding
of the return value.
@returns
Any remaining enciphered contents. If outputEncoding
is specified, a string is returned. If an outputEncoding
is not provided, a Buffer is returned.