14 references to PrivateKeySizeInBytes
System.Security.Cryptography (14)
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
)
1475
int size =
PrivateKeySizeInBytes
+ 32;
1524
Debug.Assert(pkcs8Preamble.Length +
PrivateKeySizeInBytes
== Pkcs8SizeInBytes);
1533
Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length,
PrivateKeySizeInBytes
);
1555
int initialSize =
PrivateKeySizeInBytes
+ 32;
1593
if (privateKey.Length !=
PrivateKeySizeInBytes
)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (2)
127
Debug.Assert(destination.Length ==
PrivateKeySizeInBytes
);
226
if (ecKey.PrivateKey.Length !=
PrivateKeySizeInBytes
)