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