
Extra calls to CipherOutputStream.close() causes each time extra 16 bytes written to the underlying OutputStream. Prevented close() is called more than once and also discarded any data in ReusableBufferedOutputStream buffer on reset(). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144063120