Lucene.Net.Core.Support: Deleted unused Crytpography class
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/b9cc92d4 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/b9cc92d4 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/b9cc92d4 Branch: refs/heads/api-work Commit: b9cc92d4d5d3cee22177c71bb6caa09f5b7fc291 Parents: 516c107 Author: Shad Storhaug <[email protected]> Authored: Tue Jan 31 11:31:17 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Tue Jan 31 11:31:17 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Core/Lucene.Net.csproj | 1 - src/Lucene.Net.Core/Support/Cryptography.cs | 45 ------------------------ 2 files changed, 46 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b9cc92d4/src/Lucene.Net.Core/Lucene.Net.csproj ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj index 7a3d16e..1d52bd9 100644 --- a/src/Lucene.Net.Core/Lucene.Net.csproj +++ b/src/Lucene.Net.Core/Lucene.Net.csproj @@ -677,7 +677,6 @@ <Compile Include="Support\Compatibility\ThreadLocal.cs" /> <Compile Include="Support\Compatibility\WrappedHashSet.cs" /> <Compile Include="Support\CRC32.cs" /> - <Compile Include="Support\Cryptography.cs" /> <Compile Include="Support\Deflater.cs" /> <Compile Include="Support\Double.cs" /> <Compile Include="Support\EquatableList.cs" /> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b9cc92d4/src/Lucene.Net.Core/Support/Cryptography.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Support/Cryptography.cs b/src/Lucene.Net.Core/Support/Cryptography.cs deleted file mode 100644 index d290815..0000000 --- a/src/Lucene.Net.Core/Support/Cryptography.cs +++ /dev/null @@ -1,45 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * -*/ - -using System.Security.Cryptography; - -namespace Lucene.Net.Support -{ - public static class Cryptography - { - public static bool FIPSCompliant = false; - - public static HashAlgorithm HashAlgorithm - { - get - { - if (FIPSCompliant) - { - //LUCENENET-175 - //No Assumptions should be made on the HashAlgorithm. It may change in time. - //SHA256 SHA384 SHA512 etc. - return SHA1.Create(); - } - return MD5.Create(); - } - } - } -} \ No newline at end of file
