13 references to PrivateKeySizeInBytes
System.Security.Cryptography (13)
System\Security\Cryptography\X25519DiffieHellman.cs (11)
227byte[] buffer = new byte[PrivateKeySizeInBytes]; 247if (destination.Length != PrivateKeySizeInBytes) 250SR.Format(SR.Argument_DestinationImprecise, PrivateKeySizeInBytes), 873/// <paramref name="source" /> has a length that is not <see cref="PrivateKeySizeInBytes" />. 898/// <paramref name="source" /> has a length that is not <see cref="PrivateKeySizeInBytes" />. 909if (source.Length != PrivateKeySizeInBytes) 1458int size = PrivateKeySizeInBytes + 32; 1493int pkcs8SizeInBytes = pkcs8Preamble.Length + PrivateKeySizeInBytes; 1502Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length, PrivateKeySizeInBytes); 1524int initialSize = PrivateKeySizeInBytes + 32; 1562if (privateKey.Length != PrivateKeySizeInBytes)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (2)
127Debug.Assert(destination.Length == PrivateKeySizeInBytes); 226if (ecKey.PrivateKey.Length != PrivateKeySizeInBytes)