diff --git a/CertKeyProviderPlugin/CertKeyProvider.cs b/CertKeyProviderPlugin/CertKeyProvider.cs
index 6dc8458..f7ac3e7 100644
--- a/CertKeyProviderPlugin/CertKeyProvider.cs
+++ b/CertKeyProviderPlugin/CertKeyProvider.cs
@@ -161,9 +161,9 @@ byte[] GetExistingKey(IOConnectionInfo ioc)
// fall back on opening a local file
// FUTURE ENHANCEMENT: allow user to enter a URL and name/pwd as well
- OpenFileDialog ofd = UIUtil.CreateOpenFileDialog(Res.str(Res.STR_OPEN_KEY_FILE),
+ OpenFileDialog ofd = (OpenFileDialog)UIUtil.CreateOpenFileDialog(Res.str(Res.STR_OPEN_KEY_FILE),
UIUtil.CreateFileTypeFilter(CertProtKeyFileExtension, Res.str(Res.STR_CERT_PROT_KEY_FILE), true),
- 1, CertProtKeyFileExtension, false /* multi-select */, true);
+ 1, CertProtKeyFileExtension, false /* multi-select */, string.Empty).FileDialog;
if (ofd.ShowDialog() != DialogResult.OK)
{
@@ -215,10 +215,10 @@ byte[] GetNewKey(string strPath)
MessageBox.Show(Res.str(Res.STR_ENC_KEY_INTRO), Res.str(Res.STR_APP_TITLE),
MessageBoxButtons.OK, MessageBoxIcon.Information);
- SaveFileDialog sfd = UIUtil.CreateSaveFileDialog(Res.str(Res.STR_CREATE_KEY_FILE),
+ SaveFileDialog sfd = (SaveFileDialog)UIUtil.CreateSaveFileDialog(Res.str(Res.STR_CREATE_KEY_FILE),
UrlUtil.StripExtension(UrlUtil.GetFileName(strPath)) + "." +
CertProtKeyFileExtension, UIUtil.CreateFileTypeFilter(CertProtKeyFileExtension,
- Res.str(Res.STR_CERT_PROT_KEY_FILE), true), 1, CertProtKeyFileExtension, true);
+ Res.str(Res.STR_CERT_PROT_KEY_FILE), true), 1, CertProtKeyFileExtension, string.Empty).FileDialog;
if(sfd.ShowDialog() != DialogResult.OK)
{
diff --git a/CertKeyProviderPlugin/CertKeyProviderPlugin.csproj b/CertKeyProviderPlugin/CertKeyProviderPlugin.csproj
index 676dab2..a5bb7e2 100644
--- a/CertKeyProviderPlugin/CertKeyProviderPlugin.csproj
+++ b/CertKeyProviderPlugin/CertKeyProviderPlugin.csproj
@@ -10,7 +10,7 @@
Properties
CertKeyProviderPlugin
CertKeyProviderPlugin
- v3.5
+ v4.5.2
512
true
CertProviderPluginKey.snk
@@ -34,6 +34,7 @@
false
false
true
+
true
@@ -43,6 +44,7 @@
DEBUG;TRACE
prompt
4
+ false
pdbonly
@@ -51,11 +53,12 @@
TRACE
prompt
4
+ false
False
- ..\..\..\..\..\KeePass-2.35\KeePass.exe
+ ..\..\..\keepass\KeePass.exe
diff --git a/CertKeyProviderPlugin/CertKeyProviderResources.Designer.cs b/CertKeyProviderPlugin/CertKeyProviderResources.Designer.cs
index 3b032b3..7486d1a 100644
--- a/CertKeyProviderPlugin/CertKeyProviderResources.Designer.cs
+++ b/CertKeyProviderPlugin/CertKeyProviderResources.Designer.cs
@@ -19,7 +19,7 @@ namespace CertKeyProviderPlugin {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class CertKeyProviderResources {
diff --git a/CertKeyProviderPlugin/CryptoTools.cs b/CertKeyProviderPlugin/CryptoTools.cs
index 684c652..4965301 100644
--- a/CertKeyProviderPlugin/CryptoTools.cs
+++ b/CertKeyProviderPlugin/CryptoTools.cs
@@ -47,9 +47,9 @@ static public byte[] EncryptMsg(
// Instantiate an EnvelopedCms object with the ContentInfo
// above.
// Has default SubjectIdentifierType IssuerAndSerialNumber.
- // Has default ContentEncryptionAlgorithm property value
- // RSA_DES_EDE3_CBC.
- EnvelopedCms envelopedCms = new EnvelopedCms(contentInfo);
+ // Force usage of AES256 instead of 3DES
+ Oid aes256 = Oid.FromFriendlyName("aes256", OidGroup.EncryptionAlgorithm);
+ EnvelopedCms envelopedCms = new EnvelopedCms(contentInfo, new AlgorithmIdentifier(aes256));
// Formulate a CmsRecipient object collection that
// represent information about the recipients