14 references to PrivateKeySizeInBytes
System.Security.Cryptography (14)
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) 1475int size = PrivateKeySizeInBytes + 32; 1524Debug.Assert(pkcs8Preamble.Length + PrivateKeySizeInBytes == Pkcs8SizeInBytes); 1533Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length, PrivateKeySizeInBytes); 1555int initialSize = PrivateKeySizeInBytes + 32; 1593if (privateKey.Length != PrivateKeySizeInBytes)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (2)
127Debug.Assert(destination.Length == PrivateKeySizeInBytes); 226if (ecKey.PrivateKey.Length != PrivateKeySizeInBytes)