21 references to PublicKeySizeInBytes
System.Security.Cryptography (21)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
12private const int PublicKeySizeInBytes = X25519DiffieHellman.PublicKeySizeInBytes;
System\Security\Cryptography\X25519DiffieHellman.cs (13)
45private const int SpkiSizeInBytes = 12 + PublicKeySizeInBytes; 102/// <paramref name="otherPartyPublicKey" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 171/// <para><paramref name="otherPartyPublicKey" /> has a length that is not <see cref="PublicKeySizeInBytes" />.</para> 272byte[] buffer = new byte[PublicKeySizeInBytes]; 292if (destination.Length != PublicKeySizeInBytes) 295SR.Format(SR.Argument_DestinationImprecise, PublicKeySizeInBytes), 929/// <paramref name="source" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 954/// <paramref name="source" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 965if (source.Length != PublicKeySizeInBytes) 1023if (key.Length != PublicKeySizeInBytes) 1440Debug.Assert(spkiPreamble.Length + PublicKeySizeInBytes == SpkiSizeInBytes); 1449ExportPublicKeyCore(destination.Slice(spkiPreamble.Length, PublicKeySizeInBytes)); 1577if (publicKey.Length != PublicKeySizeInBytes)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (4)
44Span<byte> publicKeyBytes = stackalloc byte[PublicKeySizeInBytes]; 51Debug.Assert(otherPartyPublicKey.Length == PublicKeySizeInBytes); 62reducedPublicKey = stackalloc byte[PublicKeySizeInBytes]; 121Debug.Assert(destination.Length == PublicKeySizeInBytes);
System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (3)
49Span<byte> publicKeyBytes = stackalloc byte[PublicKeySizeInBytes]; 58Debug.Assert(otherPartyPublicKey.Length == PublicKeySizeInBytes); 184reducedPublicKey = stackalloc byte[PublicKeySizeInBytes];