Commit 5e9108c1 authored by Josh Ji's avatar Josh Ji

clientPin_getRetries, clientPin_getKeyAgreement, clientPin_setPin

parent ba58eed8
No preview for this file type
......@@ -6,9 +6,11 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BouncyCastle" Version="1.8.9" />
<PackageReference Include="Dahomey.Cbor" Version="1.17.0" />
<PackageReference Include="Jsbeautifier" Version="0.0.1" />
<PackageReference Include="MySql.Data" Version="8.0.29" />
......
......@@ -47,6 +47,10 @@
this.getCredentialCount = new System.Windows.Forms.Button();
this.getFreeSpace = new System.Windows.Forms.Button();
this.IDxBox = new System.Windows.Forms.TextBox();
this.ClientPIN_getRetries = new System.Windows.Forms.Button();
this.ClientPIN_getKeyAgreement = new System.Windows.Forms.Button();
this.pinBox = new System.Windows.Forms.TextBox();
this.SetPIN = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
......@@ -243,11 +247,53 @@
this.IDxBox.Size = new System.Drawing.Size(119, 23);
this.IDxBox.TabIndex = 16;
//
// ClientPIN_getRetries
//
this.ClientPIN_getRetries.Location = new System.Drawing.Point(1004, 58);
this.ClientPIN_getRetries.Name = "ClientPIN_getRetries";
this.ClientPIN_getRetries.Size = new System.Drawing.Size(181, 23);
this.ClientPIN_getRetries.TabIndex = 17;
this.ClientPIN_getRetries.Text = "ClientPIN_getRetries";
this.ClientPIN_getRetries.UseVisualStyleBackColor = true;
this.ClientPIN_getRetries.Click += new System.EventHandler(this.ClientPIN_getRetries_Click);
//
// ClientPIN_getKeyAgreement
//
this.ClientPIN_getKeyAgreement.Location = new System.Drawing.Point(1004, 87);
this.ClientPIN_getKeyAgreement.Name = "ClientPIN_getKeyAgreement";
this.ClientPIN_getKeyAgreement.Size = new System.Drawing.Size(181, 23);
this.ClientPIN_getKeyAgreement.TabIndex = 18;
this.ClientPIN_getKeyAgreement.Text = "ClientPIN_getKeyAgreement";
this.ClientPIN_getKeyAgreement.UseVisualStyleBackColor = true;
this.ClientPIN_getKeyAgreement.Click += new System.EventHandler(this.ClientPIN_getKeyAgreement_Click);
//
// pinBox
//
this.pinBox.Location = new System.Drawing.Point(1004, 116);
this.pinBox.Name = "pinBox";
this.pinBox.PlaceholderText = "PIN";
this.pinBox.Size = new System.Drawing.Size(119, 23);
this.pinBox.TabIndex = 19;
//
// SetPIN
//
this.SetPIN.Location = new System.Drawing.Point(1004, 145);
this.SetPIN.Name = "SetPIN";
this.SetPIN.Size = new System.Drawing.Size(181, 23);
this.SetPIN.TabIndex = 20;
this.SetPIN.Text = "ClientPIN_SetPIN";
this.SetPIN.UseVisualStyleBackColor = true;
this.SetPIN.Click += new System.EventHandler(this.SetPIN_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
this.ClientSize = new System.Drawing.Size(1211, 729);
this.Controls.Add(this.SetPIN);
this.Controls.Add(this.pinBox);
this.Controls.Add(this.ClientPIN_getKeyAgreement);
this.Controls.Add(this.ClientPIN_getRetries);
this.Controls.Add(this.IDxBox);
this.Controls.Add(this.getFreeSpace);
this.Controls.Add(this.getCredentialCount);
......@@ -296,5 +342,9 @@
private Button getCredentialCount;
private Button getFreeSpace;
private TextBox IDxBox;
private Button ClientPIN_getRetries;
private Button ClientPIN_getKeyAgreement;
private TextBox pinBox;
private Button SetPIN;
}
}
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
-->
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
......@@ -8,6 +8,7 @@
".NETCoreApp,Version=v6.0": {
"FidoReader/1.0.0": {
"dependencies": {
"BouncyCastle": "1.8.9",
"Dahomey.Cbor": "1.17.0",
"Jsbeautifier": "0.0.1",
"MySql.Data": "8.0.29",
......@@ -23,14 +24,15 @@
"FidoReader.dll": {}
}
},
"BouncyCastle.NetCore/1.8.5": {
"BouncyCastle/1.8.9": {
"runtime": {
"lib/netstandard2.0/BouncyCastle.Crypto.dll": {
"assemblyVersion": "1.8.5.0",
"fileVersion": "1.8.19031.1"
"lib/BouncyCastle.Crypto.dll": {
"assemblyVersion": "1.8.9.0",
"fileVersion": "1.8.20343.1"
}
}
},
"BouncyCastle.NetCore/1.8.5": {},
"Dahomey.Cbor/1.17.0": {
"dependencies": {
"System.IO.Pipelines": "6.0.1"
......@@ -380,6 +382,13 @@
"serviceable": false,
"sha512": ""
},
"BouncyCastle/1.8.9": {
"type": "package",
"serviceable": true,
"sha512": "sha512-axnBgvdD5n+FnEG6efk/tfKuMFru7R/EoISH9zjh319yb3HD24TEHSAbNN/lTRT2ulOGRxDgOsCjkuk08iwWPg==",
"path": "bouncycastle/1.8.9",
"hashPath": "bouncycastle.1.8.9.nupkg.sha512"
},
"BouncyCastle.NetCore/1.8.5": {
"type": "package",
"serviceable": true,
......
//------------------------------------------------------------------------------
// <auto-generated>
// 這段程式碼是由工具產生的。
// 執行階段版本:4.0.30319.42000
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
// 變更將會遺失。
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
......@@ -21,5 +21,5 @@ using System.Reflection;
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// 由 MSBuild WriteCodeFragment 類別產生。
// Generated by the MSBuild WriteCodeFragment class.
is_global = true
build_property.ApplicationManifest =
build_property.ApplicationManifest = app.manifest
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
......
e415487a358ca4b07c65676047fc477a837a2904
70c01be08d1fd5a0b16f4475ace7aca575aea393
......@@ -6,6 +6,14 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"BouncyCastle/1.8.9": {
"runtime": {
"lib/BouncyCastle.Crypto.dll": {
"assemblyVersion": "1.8.9.0",
"fileVersion": "1.8.20343.1"
}
}
},
"BouncyCastle.NetCore/1.8.5": {
"runtime": {
"lib/netstandard2.0/BouncyCastle.Crypto.dll": {
......@@ -518,6 +526,13 @@
}
},
"libraries": {
"BouncyCastle/1.8.9": {
"type": "package",
"serviceable": true,
"sha512": "sha512-axnBgvdD5n+FnEG6efk/tfKuMFru7R/EoISH9zjh319yb3HD24TEHSAbNN/lTRT2ulOGRxDgOsCjkuk08iwWPg==",
"path": "bouncycastle/1.8.9",
"hashPath": "bouncycastle.1.8.9.nupkg.sha512"
},
"BouncyCastle.NetCore/1.8.5": {
"type": "package",
"serviceable": true,
......
......@@ -44,6 +44,10 @@
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"dependencies": {
"BouncyCastle": {
"target": "Package",
"version": "[1.8.9, )"
},
"Dahomey.Cbor": {
"target": "Package",
"version": "[1.17.0, )"
......
......@@ -2,6 +2,15 @@
"version": 3,
"targets": {
"net6.0-windows7.0": {
"BouncyCastle/1.8.9": {
"type": "package",
"compile": {
"lib/BouncyCastle.Crypto.dll": {}
},
"runtime": {
"lib/BouncyCastle.Crypto.dll": {}
}
},
"BouncyCastle.NetCore/1.8.5": {
"type": "package",
"compile": {
......@@ -568,6 +577,19 @@
}
},
"libraries": {
"BouncyCastle/1.8.9": {
"sha512": "axnBgvdD5n+FnEG6efk/tfKuMFru7R/EoISH9zjh319yb3HD24TEHSAbNN/lTRT2ulOGRxDgOsCjkuk08iwWPg==",
"type": "package",
"path": "bouncycastle/1.8.9",
"files": [
".nupkg.metadata",
".signature.p7s",
"README.md",
"bouncycastle.1.8.9.nupkg.sha512",
"bouncycastle.nuspec",
"lib/BouncyCastle.Crypto.dll"
]
},
"BouncyCastle.NetCore/1.8.5": {
"sha512": "6uxsQw2UXrt82VQAWC2td3oBSJjUZ3P4u4DliagB8wf67KsU53V8sW9xwdF+IwZOOZFR0TCZuv/YKZ2BlrfAag==",
"type": "package",
......@@ -1842,6 +1864,7 @@
},
"projectFileDependencyGroups": {
"net6.0-windows7.0": [
"BouncyCastle >= 1.8.9",
"Dahomey.Cbor >= 1.17.0",
"Jsbeautifier >= 0.0.1",
"MySql.Data >= 8.0.29",
......@@ -1897,6 +1920,10 @@
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"dependencies": {
"BouncyCastle": {
"target": "Package",
"version": "[1.8.9, )"
},
"Dahomey.Cbor": {
"target": "Package",
"version": "[1.17.0, )"
......@@ -1955,5 +1982,17 @@
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.200\\RuntimeIdentifierGraph.json"
}
}
}
},
"logs": [
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'BouncyCastle 1.8.9' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0-windows7.0'. This package may not be fully compatible with your project.",
"libraryId": "BouncyCastle",
"targetGraphs": [
"net6.0-windows7.0"
]
}
]
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "o30u0jePzkGYiSTL2zF91Wt2Ajl9yX83bAC+dQmvOY3N37XtOc4JXYgzDb4HZPIVIlo9lIYSbeQw01FGI9NmCw==",
"dgSpecHash": "DDMckub4Fgeei/Y4fl41Q8XaUezTPFT7Wjn0ILtZ1P8nkubH9FnGf0XoVeVjfz5cW4aEWjFrTVmyQV0jKdqrYQ==",
"success": true,
"projectFilePath": "C:\\Users\\josh2\\Documents\\TWISC\\forward privacy\\FidoReader\\FidoReader\\FidoReader.csproj",
"expectedPackageFiles": [
"C:\\Users\\josh2\\.nuget\\packages\\bouncycastle\\1.8.9\\bouncycastle.1.8.9.nupkg.sha512",
"C:\\Users\\josh2\\.nuget\\packages\\bouncycastle.netcore\\1.8.5\\bouncycastle.netcore.1.8.5.nupkg.sha512",
"C:\\Users\\josh2\\.nuget\\packages\\dahomey.cbor\\1.17.0\\dahomey.cbor.1.17.0.nupkg.sha512",
"C:\\Users\\josh2\\.nuget\\packages\\entityframework\\6.4.4\\entityframework.6.4.4.nupkg.sha512",
......@@ -47,5 +48,16 @@
"C:\\Users\\josh2\\.nuget\\packages\\system.text.encoding.codepages\\4.4.0\\system.text.encoding.codepages.4.4.0.nupkg.sha512",
"C:\\Users\\josh2\\.nuget\\packages\\system.windows.extensions\\4.7.0\\system.windows.extensions.4.7.0.nupkg.sha512"
],
"logs": []
"logs": [
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'BouncyCastle 1.8.9' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0-windows7.0'. This package may not be fully compatible with your project.",
"libraryId": "BouncyCastle",
"targetGraphs": [
"net6.0-windows7.0"
]
}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment