7 overrides of BlockSize
System.Security.Cryptography (7)
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
29
public override int
BlockSize
System\Security\Cryptography\AesManaged.cs (1)
28
public override int
BlockSize
System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs (1)
22
public override int
BlockSize
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
29
public override int
BlockSize
System\Security\Cryptography\RijndaelImplementation.cs (1)
30
public override int
BlockSize
System\Security\Cryptography\RijndaelManaged.cs (1)
26
public override int
BlockSize
System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs (1)
27
public override int
BlockSize
5 writes to BlockSize
System.Security.Cryptography (5)
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
32
set { _impl.
BlockSize
= value; }
System\Security\Cryptography\AesManaged.cs (1)
31
set { _impl.
BlockSize
= value; }
System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs (1)
25
set { _impl.
BlockSize
= value; }
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
32
set { _impl.
BlockSize
= value; }
System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs (1)
30
set { _impl.
BlockSize
= value; }
99 references to BlockSize
Microsoft.AspNetCore.DataProtection (1)
Managed\SymmetricAlgorithmExtensions.cs (1)
13
var blockSizeInBits = symmetricAlgorithm.
BlockSize
;
System.Security.Cryptography (88)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
198
Debug.Assert(cipher.
BlockSize
<= 128, $"Encountered unexpected block size: {cipher.
BlockSize
}");
199
Span<byte> iv = stackalloc byte[cipher.
BlockSize
/ 8];
204
checked(pkcs8Writer.GetEncodedLength() + (cipher.
BlockSize
/ 8)));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (4)
408
int blockSizeBytes = (cipher.
BlockSize
/ 8);
872
if (cipher.KeySize > 256 || cipher.
BlockSize
> 256)
875
$"Unexpected cipher characteristics by {cipher.GetType().FullName}, KeySize={cipher.KeySize}, BlockSize={cipher.
BlockSize
}");
885
Span<byte> iv = stackalloc byte[cipher.
BlockSize
/ 8];
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
391
int cipherBlockBytes = cipher.
BlockSize
/ 8;
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
31
get { return _impl.
BlockSize
; }
System\Security\Cryptography\AesImplementation.cs (9)
67
IV = RandomNumberGenerator.GetBytes(
BlockSize
/ BitsPerByte);
102
BlockSize
/ BitsPerByte,
125
BlockSize
/ BitsPerByte,
150
BlockSize
/ BitsPerByte,
175
BlockSize
/ BitsPerByte,
203
(BlockSizeBytes:
BlockSize
/ BitsPerByte, FeedbackSizeBytes: feedbackSizeInBits / BitsPerByte),
231
(BlockSizeBytes:
BlockSize
/ BitsPerByte, FeedbackSizeBytes: feedbackSizeInBits / BitsPerByte),
265
if (ivSize !=
BlockSize
)
279
BlockSize
/ BitsPerByte,
System\Security\Cryptography\AesManaged.cs (1)
30
get { return _impl.
BlockSize
; }
System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs (1)
24
get { return _impl.
BlockSize
; }
System\Security\Cryptography\DesImplementation.cs (13)
43
IV = RandomNumberGenerator.GetBytes(
BlockSize
/ BitsPerByte);
76
if (ivSize !=
BlockSize
)
90
BlockSize
/ BitsPerByte,
106
blockSize:
BlockSize
/ BitsPerByte,
108
paddingSize:
BlockSize
/ BitsPerByte,
127
blockSize:
BlockSize
/ BitsPerByte,
129
paddingSize:
BlockSize
/ BitsPerByte,
149
blockSize:
BlockSize
/ BitsPerByte,
151
paddingSize:
BlockSize
/ BitsPerByte,
171
blockSize:
BlockSize
/ BitsPerByte,
173
paddingSize:
BlockSize
/ BitsPerByte,
196
blockSize:
BlockSize
/ BitsPerByte,
221
blockSize:
BlockSize
/ BitsPerByte,
System\Security\Cryptography\Helpers.cs (1)
332
return (mode == CipherMode.CFB ? feedbackSizeInBits : algorithm.
BlockSize
) / 8;
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
31
get { return _impl.
BlockSize
; }
System\Security\Cryptography\RC2Implementation.cs (12)
49
IV = RandomNumberGenerator.GetBytes(
BlockSize
/ BitsPerByte);
69
if (ivSize !=
BlockSize
)
79
return CreateTransformCore(Mode, Padding, rgbKey, rgbIV,
BlockSize
/ BitsPerByte, FeedbackSize / BitsPerByte, GetPaddingSize(), encrypting);
96
blockSize:
BlockSize
/ BitsPerByte,
97
paddingSize:
BlockSize
/ BitsPerByte,
120
blockSize:
BlockSize
/ BitsPerByte,
121
paddingSize:
BlockSize
/ BitsPerByte,
145
blockSize:
BlockSize
/ BitsPerByte,
146
paddingSize:
BlockSize
/ BitsPerByte,
170
blockSize:
BlockSize
/ BitsPerByte,
171
paddingSize:
BlockSize
/ BitsPerByte,
210
return
BlockSize
/ BitsPerByte;
System\Security\Cryptography\RijndaelImplementation.cs (1)
32
get { return _impl.
BlockSize
; }
System\Security\Cryptography\RijndaelManaged.cs (1)
28
get { return _impl.
BlockSize
; }
System\Security\Cryptography\SymmetricAlgorithm.cs (24)
75
if (value.Length != this.
BlockSize
/ 8)
300
/// <see cref="
BlockSize
" /> is not a positive integer.
306
/// <see cref="
BlockSize
" /> is not a whole number of bytes. It must be divisible by 8.
344
/// <see cref="
BlockSize
" /> is not a positive integer.
350
/// <see cref="
BlockSize
" /> is not a whole number of bytes. It must be divisible by 8.
366
int blockSizeBits =
BlockSize
; // The BlockSize property is in bits.
726
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
754
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
804
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
846
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
881
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
909
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
957
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
999
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1045
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1095
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1164
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1230
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1285
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1335
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1403
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1462
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1673
if (iv.Length !=
BlockSize
>> 3)
1679
if (feedbackSizeInBits < 8 || (feedbackSizeInBits & 0b111) != 0 || feedbackSizeInBits >
BlockSize
)
System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs (1)
29
get { return _impl.
BlockSize
; }
System\Security\Cryptography\TripleDesImplementation.cs (13)
42
IV = RandomNumberGenerator.GetBytes(
BlockSize
/ BitsPerByte);
63
if (ivSize !=
BlockSize
)
87
BlockSize
/ BitsPerByte,
103
blockSize:
BlockSize
/ BitsPerByte,
104
paddingSize:
BlockSize
/ BitsPerByte,
124
blockSize:
BlockSize
/ BitsPerByte,
125
paddingSize:
BlockSize
/ BitsPerByte,
146
blockSize:
BlockSize
/ BitsPerByte,
147
paddingSize:
BlockSize
/ BitsPerByte,
168
blockSize:
BlockSize
/ BitsPerByte,
169
paddingSize:
BlockSize
/ BitsPerByte,
193
blockSize:
BlockSize
/ BitsPerByte,
218
blockSize:
BlockSize
/ BitsPerByte,
System.Security.Cryptography.Pkcs (10)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
124
if (alg.IV.Length != alg.
BlockSize
/ 8)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
198
Debug.Assert(cipher.
BlockSize
<= 128, $"Encountered unexpected block size: {cipher.
BlockSize
}");
199
Span<byte> iv = stackalloc byte[cipher.
BlockSize
/ 8];
204
checked(pkcs8Writer.GetEncodedLength() + (cipher.
BlockSize
/ 8)));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (4)
408
int blockSizeBytes = (cipher.
BlockSize
/ 8);
872
if (cipher.KeySize > 256 || cipher.
BlockSize
> 256)
875
$"Unexpected cipher characteristics by {cipher.GetType().FullName}, KeySize={cipher.KeySize}, BlockSize={cipher.
BlockSize
}");
885
Span<byte> iv = stackalloc byte[cipher.
BlockSize
/ 8];
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
391
int cipherBlockBytes = cipher.
BlockSize
/ 8;