//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // // balnee // krishnib //------------------------------------------------------------------------------ namespace System.Data.SqlClient { using System; /// /// Abstract base class for all TCE encryption algorithms. It exposes two functions /// 1. Encrypt - This function is used by SqlClient under the covers to transparently encrypt TCE enabled column data. /// 2. Decrypt - This function is used by SqlClient under the covers to transparently decrypt TCE enabled column data. /// internal abstract class SqlClientEncryptionAlgorithm { /// /// Encrypts the plainText with a column encryption key /// /// Plain text value to be encrypted /// internal abstract byte[] EncryptData(byte[] plainText); /// /// Decrypts the cipherText with a column encryption key /// /// Ciphertext value to be decrypted /// internal abstract byte[] DecryptData(byte[] cipherText); } }