12 references to PublicKeySizeInBytes
System.Security.Cryptography (12)
System\Security\Cryptography\X25519DiffieHellman.cs (10)
45private const int SpkiSizeInBytes = 12 + PublicKeySizeInBytes; 201byte[] buffer = new byte[PublicKeySizeInBytes]; 221if (destination.Length != PublicKeySizeInBytes) 224SR.Format(SR.Argument_DestinationImprecise, PublicKeySizeInBytes), 843/// <paramref name="source" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 868/// <paramref name="source" /> has a length that is not <see cref="PublicKeySizeInBytes" />. 879if (source.Length != PublicKeySizeInBytes) 937if (key.Length != PublicKeySizeInBytes) 1354Debug.Assert(spkiPreamble.Length + PublicKeySizeInBytes == SpkiSizeInBytes); 1363ExportPublicKeyCore(destination.Slice(spkiPreamble.Length, PublicKeySizeInBytes));
System\Security\Cryptography\X25519DiffieHellmanImplementation.OpenSsl.cs (2)
34Span<byte> publicKey = stackalloc byte[PublicKeySizeInBytes]; 59Debug.Assert(destination.Length == PublicKeySizeInBytes);