6 references to DpapiSecretSerializerHelper
Microsoft.AspNetCore.DataProtection (6)
KeyManagement\XmlKeyManager.cs (1)
673
protectToLocalMachine: !
DpapiSecretSerializerHelper
.CanProtectToCurrentUserAccount(),
XmlEncryption\DpapiNGXmlDecryptor.cs (2)
65
protectionDescriptorRule =
DpapiSecretSerializerHelper
.GetRuleFromDpapiNGProtectedPayload(protectedSecret);
75
using (var secret =
DpapiSecretSerializerHelper
.UnprotectWithDpapiNG(protectedSecret))
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
70
cngDpapiEncryptedData =
DpapiSecretSerializerHelper
.ProtectWithDpapiNG(plaintextElementAsSecret, _protectionDescriptorHandle);
XmlEncryption\DpapiXmlDecryptor.cs (1)
58
using (var secret =
DpapiSecretSerializerHelper
.UnprotectWithDpapi(protectedSecret))
XmlEncryption\DpapiXmlEncryptor.cs (1)
68
dpapiEncryptedData =
DpapiSecretSerializerHelper
.ProtectWithDpapi(plaintextElementAsSecret, protectToLocalMachine: _protectToLocalMachine);