1 implementation of BlockSizeInBytes
System.Security.Cryptography (1)
System\Security\Cryptography\OpenSslCipherLite.cs (1)
21
public int
BlockSizeInBytes
{ get; }
9 references to BlockSizeInBytes
System.Security.Cryptography (9)
System\Security\Cryptography\UniversalCryptoOneShot.cs (9)
50
bytesWritten = SymmetricPadding.GetPaddingLength(transformBuffer, paddingMode, cipher.
BlockSizeInBytes
);
69
if (!depaddingRequired || input.Length - cipher.
BlockSizeInBytes
> output.Length)
90
cipher.
BlockSizeInBytes
);
116
Debug.Assert(input.Length > cipher.
BlockSizeInBytes
);
127
ReadOnlySpan<byte> unpaddedBlocks = input[..^cipher.
BlockSizeInBytes
];
128
ReadOnlySpan<byte> paddedBlock = input[^cipher.
BlockSizeInBytes
..];
129
Debug.Assert(paddedBlock.Length % cipher.
BlockSizeInBytes
== 0);
141
cipher.
BlockSizeInBytes
);
183
int unpaddedLength = SymmetricPadding.GetPaddingLength(decryptedBuffer, paddingMode, cipher.
BlockSizeInBytes
); // validates padding