Skip to content

Commit d8ffc06

Browse files
committed
ECB is weak and not used anywhere.
1 parent 2ebb953 commit d8ffc06

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/Renci.SshNet/Security/Cryptography/Cipher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public abstract class Cipher
1919
/// <summary>
2020
/// Gets the block size.
2121
/// </summary>
22-
public int BlockSize
22+
public byte BlockSize
2323
{
2424
get
2525
{

test/Renci.SshNet.Benchmarks/Security/Cryptography/Ciphers/AesCipherBenchmarks.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,5 @@ public byte[] Decrypt_CTR()
4848
{
4949
return new AesCtrCipher(_key, _iv).Decrypt(_data);
5050
}
51-
52-
[Benchmark]
53-
public byte[] Encrypt_ECB()
54-
{
55-
return new AesCipher(_key, null, CipherMode.ECB, false).Encrypt(_data);
56-
}
57-
58-
[Benchmark]
59-
public byte[] Decrypt_ECB()
60-
{
61-
return new AesCipher(_key, null, CipherMode.ECB, false).Decrypt(_data);
62-
}
6351
}
6452
}

0 commit comments

Comments
 (0)