15 references to PrivateKeySizeInBytes
System.Security.Cryptography (15)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (12)
45
private protected const int Pkcs8SizeInBytes = 16 +
PrivateKeySizeInBytes
;
230
byte[] buffer = new byte[
PrivateKeySizeInBytes
];
250
if (destination.Length !=
PrivateKeySizeInBytes
)
253
SR.Format(SR.Argument_DestinationImprecise,
PrivateKeySizeInBytes
),
876
/// <paramref name="source" /> has a length that is not <see cref="
PrivateKeySizeInBytes
" />.
901
/// <paramref name="source" /> has a length that is not <see cref="
PrivateKeySizeInBytes
" />.
912
if (source.Length !=
PrivateKeySizeInBytes
)
1477
int size =
PrivateKeySizeInBytes
+ 32;
1528
Debug.Assert(pkcs8Preamble.Length +
PrivateKeySizeInBytes
== Pkcs8SizeInBytes);
1537
Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length,
PrivateKeySizeInBytes
);
1559
int initialSize =
PrivateKeySizeInBytes
+ 32;
1597
if (privateKey.Length !=
PrivateKeySizeInBytes
)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (3)
137
Debug.Assert(destination.Length ==
PrivateKeySizeInBytes
);
231
byte[] privateKey = new byte[
PrivateKeySizeInBytes
];
253
if (ecKey.PrivateKey.Length !=
PrivateKeySizeInBytes
)