Duplex stream implementation of Crypto.