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; }
104 references to BlockSize
Microsoft.AspNetCore.DataProtection (1)
Managed\SymmetricAlgorithmExtensions.cs (1)
13
var blockSizeInBits = symmetricAlgorithm.
BlockSize
;
System.Security.Cryptography (93)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (4)
196
Debug.Assert(cipher.
BlockSize
<= 128, $"Encountered unexpected block size: {cipher.
BlockSize
}");
197
Span<byte> iv = stackalloc byte[cipher.
BlockSize
/ 8];
202
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];
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
31
get { return _impl.
BlockSize
; }
System\Security\Cryptography\AesImplementation.cs (13)
32
IV = RandomNumberGenerator.GetBytes(
BlockSize
/ BitsPerByte);
55
blockSize:
BlockSize
/ BitsPerByte,
56
paddingSize:
BlockSize
/ BitsPerByte,
76
blockSize:
BlockSize
/ BitsPerByte,
77
paddingSize:
BlockSize
/ BitsPerByte,
98
blockSize:
BlockSize
/ BitsPerByte,
99
paddingSize:
BlockSize
/ BitsPerByte,
120
blockSize:
BlockSize
/ BitsPerByte,
121
paddingSize:
BlockSize
/ BitsPerByte,
145
blockSize:
BlockSize
/ BitsPerByte,
170
blockSize:
BlockSize
/ BitsPerByte,
194
if (ivSize !=
BlockSize
)
208
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)
325
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)
251
/// <see cref="
BlockSize
" /> is not a positive integer.
257
/// <see cref="
BlockSize
" /> is not a whole number of bytes. It must be divisible by 8.
295
/// <see cref="
BlockSize
" /> is not a positive integer.
301
/// <see cref="
BlockSize
" /> is not a whole number of bytes. It must be divisible by 8.
317
int blockSizeBits =
BlockSize
; // The BlockSize property is in bits.
677
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
705
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
755
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
797
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
832
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
860
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
908
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
950
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
996
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1046
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1115
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1181
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1236
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1286
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1354
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1413
/// that is exactly <see cref="
BlockSize
" /> in length, converted to bytes (<c>BlockSize / 8</c>).
1624
if (iv.Length !=
BlockSize
>> 3)
1630
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\X509Certificates\UnixExportProvider.cs (2)
340
Debug.Assert(certContentsIv.Length * 8 == cipher.
BlockSize
);
374
int cipherBlockBytes = cipher.
BlockSize
>> 3;
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)
196
Debug.Assert(cipher.
BlockSize
<= 128, $"Encountered unexpected block size: {cipher.
BlockSize
}");
197
Span<byte> iv = stackalloc byte[cipher.
BlockSize
/ 8];
202
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];
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
386
int cipherBlockBytes = cipher.
BlockSize
/ 8;