21 references to PublicKeySizeInBytes
System.Security.Cryptography (21)
src\runtime\src\libraries\Common\src\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) 1450Debug.Assert(spkiPreamble.Length + PublicKeySizeInBytes == SpkiSizeInBytes); 1459writer(state, destination.Slice(spkiPreamble.Length, PublicKeySizeInBytes)); 1612if (publicKey.Length != PublicKeySizeInBytes)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (4)
47Span<byte> publicKeyBytes = stackalloc byte[PublicKeySizeInBytes]; 54Debug.Assert(otherPartyPublicKey.Length == PublicKeySizeInBytes); 65reducedPublicKey = stackalloc byte[PublicKeySizeInBytes]; 131Debug.Assert(destination.Length == PublicKeySizeInBytes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (3)
50Span<byte> publicKeyBytes = stackalloc byte[PublicKeySizeInBytes]; 59Debug.Assert(otherPartyPublicKey.Length == PublicKeySizeInBytes); 186reducedPublicKey = stackalloc byte[PublicKeySizeInBytes];
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
12private const int PublicKeySizeInBytes = X25519DiffieHellman.PublicKeySizeInBytes;