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)
48private protected const int SpkiSizeInBytes = 12 + PublicKeySizeInBytes; 105/// <paramref name="otherPartyPublicKey" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 174/// <para><paramref name="otherPartyPublicKey" /> has a length that is not <see cref="PublicKeySizeInBytes" />.</para> 275byte[] buffer = new byte[PublicKeySizeInBytes]; 295if (destination.Length != PublicKeySizeInBytes) 298SR.Format(SR.Argument_DestinationImprecise, PublicKeySizeInBytes), 932/// <paramref name="source" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 957/// <paramref name="source" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 968if (source.Length != PublicKeySizeInBytes) 1026if (key.Length != PublicKeySizeInBytes) 1448Debug.Assert(spkiPreamble.Length + PublicKeySizeInBytes == SpkiSizeInBytes); 1457writer(state, destination.Slice(spkiPreamble.Length, PublicKeySizeInBytes)); 1608if (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];