21 references to PublicKeySizeInBytes
System.Security.Cryptography (21)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
12
private const int PublicKeySizeInBytes = X25519DiffieHellman.
PublicKeySizeInBytes
;
System\Security\Cryptography\X25519DiffieHellman.cs (13)
45
private 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>
272
byte[] buffer = new byte[
PublicKeySizeInBytes
];
292
if (destination.Length !=
PublicKeySizeInBytes
)
295
SR.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
" />.
965
if (source.Length !=
PublicKeySizeInBytes
)
1023
if (key.Length !=
PublicKeySizeInBytes
)
1440
Debug.Assert(spkiPreamble.Length +
PublicKeySizeInBytes
== SpkiSizeInBytes);
1449
ExportPublicKeyCore(destination.Slice(spkiPreamble.Length,
PublicKeySizeInBytes
));
1577
if (publicKey.Length !=
PublicKeySizeInBytes
)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (4)
44
Span<byte> publicKeyBytes = stackalloc byte[
PublicKeySizeInBytes
];
51
Debug.Assert(otherPartyPublicKey.Length ==
PublicKeySizeInBytes
);
62
reducedPublicKey = stackalloc byte[
PublicKeySizeInBytes
];
121
Debug.Assert(destination.Length ==
PublicKeySizeInBytes
);
System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (3)
49
Span<byte> publicKeyBytes = stackalloc byte[
PublicKeySizeInBytes
];
58
Debug.Assert(otherPartyPublicKey.Length ==
PublicKeySizeInBytes
);
184
reducedPublicKey = stackalloc byte[
PublicKeySizeInBytes
];