core.crypto.streams
Class MacOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
core.crypto.streams.MacOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class MacOutputStream
- extends FilterOutputStream
The data written gets piped through a MAC
Copyright (c) 2006 Sebastian Erdweg
Copyright (c) 2006 Dominik Schulz
Copyright (c) 2006 Florian Lindner
Copyright (c) 2006 Betim Berjani
This file is part of FlexiCrypt.
FlexiCrypt is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
FlexiCrypt is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FlexiCrypt; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Author:
- Dominik
Method Summary |
void |
write(byte[] b)
|
void |
write(byte[] b,
int offset,
int length)
|
void |
write(int b)
|
MacOutputStream
public MacOutputStream(OutputStream out,
Mac mac)
- Parameters:
out
- An OutputStreammac
- An MAC
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int offset,
int length)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException