15 references to PrivateKeySizeInBytes
System.Security.Cryptography (15)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (12)
45private protected const int Pkcs8SizeInBytes = 16 + PrivateKeySizeInBytes; 230byte[] buffer = new byte[PrivateKeySizeInBytes]; 250if (destination.Length != PrivateKeySizeInBytes) 253SR.Format(SR.Argument_DestinationImprecise, PrivateKeySizeInBytes), 876/// <paramref name="source" /> has a length that is not <see cref="PrivateKeySizeInBytes" />. 901/// <paramref name="source" /> has a length that is not <see cref="PrivateKeySizeInBytes" />. 912if (source.Length != PrivateKeySizeInBytes) 1477int size = PrivateKeySizeInBytes + 32; 1528Debug.Assert(pkcs8Preamble.Length + PrivateKeySizeInBytes == Pkcs8SizeInBytes); 1537Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length, PrivateKeySizeInBytes); 1559int initialSize = PrivateKeySizeInBytes + 32; 1597if (privateKey.Length != PrivateKeySizeInBytes)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (3)
137Debug.Assert(destination.Length == PrivateKeySizeInBytes); 231byte[] privateKey = new byte[PrivateKeySizeInBytes]; 253if (ecKey.PrivateKey.Length != PrivateKeySizeInBytes)