12 references to PublicKeySizeInBytes
System.Security.Cryptography (12)
System\Security\Cryptography\X25519DiffieHellman.cs (10)
45
private const int SpkiSizeInBytes = 12 +
PublicKeySizeInBytes
;
201
byte[] buffer = new byte[
PublicKeySizeInBytes
];
221
if (destination.Length !=
PublicKeySizeInBytes
)
224
SR.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
" />.
879
if (source.Length !=
PublicKeySizeInBytes
)
937
if (key.Length !=
PublicKeySizeInBytes
)
1354
Debug.Assert(spkiPreamble.Length +
PublicKeySizeInBytes
== SpkiSizeInBytes);
1363
ExportPublicKeyCore(destination.Slice(spkiPreamble.Length,
PublicKeySizeInBytes
));
System\Security\Cryptography\X25519DiffieHellmanImplementation.OpenSsl.cs (2)
34
Span<byte> publicKey = stackalloc byte[
PublicKeySizeInBytes
];
59
Debug.Assert(destination.Length ==
PublicKeySizeInBytes
);