Skip to content

Commit

Permalink
#1 鍵の重複への対策
Browse files Browse the repository at this point in the history
  • Loading branch information
kaz-mighty committed Nov 21, 2019
1 parent 32fcea8 commit f929657
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DpmToAx/HspCrypto/HspCryptoTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,12 @@ internal static HspCryptoTransform CrackEncryption(byte[] plain, byte[] encrypte
{
decoder.Decode(reader, outputPath);
transformList.Add(xoradd);
break;
} catch(Exception e) {
Console.WriteLine(e);
}
}
}
//候補が2つ以上ならアルゴリズムに問題アリ。
if (transformList.Count > 1)
throw new Exception("復号器の異常");
if (transformList.Count == 1)
{
HspCryptoTransform ret = new HspCryptoTransform();
Expand Down

0 comments on commit f929657

Please sign in to comment.