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)
48
private 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>
275
byte[] buffer = new byte[
PublicKeySizeInBytes
];
295
if (destination.Length !=
PublicKeySizeInBytes
)
298
SR.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
" />.
968
if (source.Length !=
PublicKeySizeInBytes
)
1026
if (key.Length !=
PublicKeySizeInBytes
)
1448
Debug.Assert(spkiPreamble.Length +
PublicKeySizeInBytes
== SpkiSizeInBytes);
1457
writer(state, destination.Slice(spkiPreamble.Length,
PublicKeySizeInBytes
));
1608
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
];