Commits

Devin Martin  committed a5993b3

Windows store stub

  • Participants
  • Parent commits 717fd66
  • Branches windows-store

Comments (0)

Files changed (4)

File OtpSharp.WindowsStore/InMemoryKey.cs

+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OtpSharp
+{
+    public class InMemoryKey : IKeyProvider
+    {
+        public InMemoryKey(byte[] secret)
+        { }
+
+        byte[] IKeyProvider.ComputeHmac(OtpHashMode mode, byte[] data)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}

File OtpSharp.WindowsStore/OtpSharp.WindowsStore.csproj

+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>OtpSharp.WindowsStore</RootNamespace>
+    <AssemblyName>OtpSharp.WindowsStore</AssemblyName>
+    <DefaultLanguage>en-US</DefaultLanguage>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <TargetFrameworkProfile>Profile32</TargetFrameworkProfile>
+    <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <!-- A reference to the entire .NET Framework is automatically included -->
+  </ItemGroup>
+  <ItemGroup>
+    <TargetPlatform Include="WindowsPhoneApp, Version=8.1" />
+    <TargetPlatform Include="Windows, Version=8.1" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="..\OtpSharp\Hotp.cs">
+      <Link>Hotp.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\IKeyProvider.cs">
+      <Link>IKeyProvider.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\KeyUtilities.cs">
+      <Link>KeyUtilities.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\Otp.cs">
+      <Link>Otp.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\OtpHashMode.cs">
+      <Link>OtpHashMode.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\OtpType.cs">
+      <Link>OtpType.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\TimeCorrection.cs">
+      <Link>TimeCorrection.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\Totp.cs">
+      <Link>Totp.cs</Link>
+    </Compile>
+    <Compile Include="..\OtpSharp\VerificationWindow.cs">
+      <Link>VerificationWindow.cs</Link>
+    </Compile>
+    <Compile Include="InMemoryKey.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>

File OtpSharp.WindowsStore/Properties/AssemblyInfo.cs

+using System.Resources;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("OtpSharp.WindowsStore")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("OtpSharp.WindowsStore")]
+[assembly: AssemblyCopyright("Copyright ©  2014")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("en")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

File OtpSharp.sln

 
 Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30501.0
+MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpSharp", "OtpSharp\OtpSharp.csproj", "{DF432B25-4EBE-4C89-B7BD-0553CB6301B9}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpSharp.Tests", "OtpSharp.Tests\OtpSharp.Tests.csproj", "{47CEC7AF-4820-4683-9FC5-866333BD39E8}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GoogleAuthenticatorTotpTest", "GoogleAuthenticatorTotpTest\GoogleAuthenticatorTotpTest.csproj", "{03032D47-249C-4D18-8196-FA6C02E37CC1}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OtpSharp.WindowsStore", "OtpSharp.WindowsStore\OtpSharp.WindowsStore.csproj", "{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}"
+EndProject
 Global
-	GlobalSection(TestCaseManagementSettings) = postSolution
-		CategoryFile = OtpSharp.vsmdi
-	EndGlobalSection
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
 		Debug|Mixed Platforms = Debug|Mixed Platforms
 		{03032D47-249C-4D18-8196-FA6C02E37CC1}.Release|Mixed Platforms.Build.0 = Release|x86
 		{03032D47-249C-4D18-8196-FA6C02E37CC1}.Release|x86.ActiveCfg = Release|x86
 		{03032D47-249C-4D18-8196-FA6C02E37CC1}.Release|x86.Build.0 = Release|x86
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Release|Any CPU.Build.0 = Release|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{7FE28D41-2CAE-4875-A4C8-5EE9246C8BAB}.Release|x86.ActiveCfg = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
+	GlobalSection(TestCaseManagementSettings) = postSolution
+		CategoryFile = OtpSharp.vsmdi
+	EndGlobalSection
 EndGlobal