2 writes to entropy
System.ServiceModel (2)
System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (2)
30this.entropy = null; 34this.entropy = DiagnosticUtility.Utility.AllocateByteArray(entropy.Length);
9 references to entropy
System.ServiceModel (9)
System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (9)
35Buffer.BlockCopy(entropy, 0, this.entropy, 0, entropy.Length); 50if (this.entropy != null) 52result = DiagnosticUtility.Utility.AllocateByteArray(this.entropy.Length); 53Buffer.BlockCopy(this.entropy, 0, result, 0, this.entropy.Length); 63result.AppendFormat("{0} Entropy Length={1}", Environment.NewLine, (this.entropy == null) ? 0 : this.entropy.Length); 71return ProtectedData.Unprotect(data, this.entropy, (this.useCurrentUserProtectionScope) ? DataProtectionScope.CurrentUser : DataProtectionScope.LocalMachine); 84return ProtectedData.Protect(data, this.entropy, (this.useCurrentUserProtectionScope) ? DataProtectionScope.CurrentUser : DataProtectionScope.LocalMachine);