internal NemKeysPrivacyStrategy(BlockchainKeysCipherEncryptor blockchainKeysCipherEncryptor, string privateKey, string publicKey) { CheckParameter(privateKey != null, "private key is required"); CheckParameter(publicKey != null, "public key is required"); BlockchainKeysCipherEncryptor = blockchainKeysCipherEncryptor; PrivateKey = privateKey; PublicKey = publicKey; }
public override Stream EncryptStream(Stream data) { return(BlockchainKeysCipherEncryptor.EncryptStream(data, PrivateKey, PublicKey)); }