質問するログイン新規登録

質問編集履歴

2

タグ追加

2018/07/26 05:01

投稿

daiki002
daiki002

スコア68

title CHANGED
File without changes
body CHANGED
File without changes

1

修正

2018/07/26 05:01

投稿

daiki002
daiki002

スコア68

title CHANGED
File without changes
body CHANGED
@@ -1,12 +1,12 @@
1
1
  # 質問
2
2
  .NET Framework と .NET Coreでの実行結果が違います。
3
3
 
4
- Q1. corefxのRijndael.csではなく、RijndaelManaged.csを見ると以下のように書かれていました。
4
+ Q1. corefxのRijndaelImplementation.csを見ると以下のように書かれていました。
5
5
  なぜ.NET Coreではブロック長256bitがサポートされていないのでしょうか?
6
6
  ```
7
- / Values which were legal in desktop RijndaelManaged but not here in this wrapper type
7
+ Values which were legal in desktop RijndaelManaged but not here in this wrapper type
8
8
  ```
9
- [https://github.com/dotnet/corefx/blob/master/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/RijndaelManaged.cs#L30](https://github.com/dotnet/corefx/blob/master/src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/RijndaelManaged.cs#L30)
9
+ [https://github.com/dotnet/corefx/blob/master/src/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/RijndaelImplementation.cs#L36](https://github.com/dotnet/corefx/blob/master/src/System.Security.Cryptography.Algorithms/src/Internal/Cryptography/RijndaelImplementation.cs#L36)
10
10
 
11
11
  Q2. .NET Core標準クラスを利用してブロック長256bitの暗号化、複合をするにはどうすれば良いでしょうか。
12
12
 
@@ -18,7 +18,7 @@
18
18
  using System.Security.Cryptography;
19
19
  using System.Text;
20
20
 
21
- namespace Rijndael256Tes
21
+ namespace Rijndael256Test
22
22
  {
23
23
  class Program
24
24
  {
@@ -79,6 +79,6 @@
79
79
  ```
80
80
  Unhandled Exception: System.PlatformNotSupportedException: BlockSize must be 128 in this implementation.
81
81
  at Internal.Cryptography.RijndaelImplementation.set_BlockSize(Int32 value)
82
- at Rijndael256Tes.Program.RijndaelEncrypt(Byte[] bytes) in Program.cs:line 19
82
+ at Rijndael256Test.Program.RijndaelEncrypt(Byte[] bytes) in Program.cs:line 19
83
- at Rijndael256Tes.Program.Main(String[] args) in Program.cs:line 47
83
+ at Rijndael256Test.Program.Main(String[] args) in Program.cs:line 47
84
84
  ```