org.bouncycastle.jcajce.provider.asymmetric.ec
Class GMCipherSpi.ErasableOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.bouncycastle.jcajce.provider.asymmetric.ec.GMCipherSpi.ErasableOutputStream
- Enclosing class:
- GMCipherSpi
- protected static final class GMCipherSpi.ErasableOutputStream
- extends java.io.ByteArrayOutputStream
A ByteArrayOutputStream whose contents can be zeroed: reset() only rewinds the count and
leaves what was written in the backing array, and a growth, left to ByteArrayOutputStream,
drops the array it replaces as it stands. The SM9 CipherSpi carries the same class.
| Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
| Methods inherited from class java.io.ByteArrayOutputStream |
close, reset, size, toByteArray, toString, toString, toString, writeTo |
| Methods inherited from class java.io.OutputStream |
flush, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GMCipherSpi.ErasableOutputStream
public GMCipherSpi.ErasableOutputStream()
getBuf
public byte[] getBuf()
erase
public void erase()
write
public void write(int b)
write
public void write(byte[] b,
int off,
int len)