Class GMCipherSpi.ErasableOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.bouncycastle.jcajce.provider.asymmetric.ec.GMCipherSpi.ErasableOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
GMCipherSpi

protected static final class GMCipherSpi.ErasableOutputStream extends 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.
  • Constructor Details

    • ErasableOutputStream

      public ErasableOutputStream()
  • Method Details