Exemple #1
0
 protected Encryption(byte[] secretKey, byte[] utilitykey, IEncryptBehavior encryptBiavior, IDecryptBehavior decryptBiavior)
 {
     SecretKey       = new BinaryKey(secretKey);
     UtilityKey      = new BinaryKey(utilitykey);
     _encryptBiavior = encryptBiavior;
     _decryptBiavior = decryptBiavior;
 }
Exemple #2
0
 protected Encryption(ISecretKey secretKey, IUtilityKey utilityKey, IEncryptBehavior encryptBiavior,
                      IDecryptBehavior decryptBiavior)
 {
     SecretKey       = secretKey;
     UtilityKey      = utilityKey;
     _encryptBiavior = encryptBiavior;
     _decryptBiavior = decryptBiavior;
 }