13 references to PrivateKeySizeInBytes
System.Security.Cryptography (13)
System\Security\Cryptography\X25519DiffieHellman.cs (11)
227
byte[] buffer = new byte[
PrivateKeySizeInBytes
];
247
if (destination.Length !=
PrivateKeySizeInBytes
)
250
SR.Format(SR.Argument_DestinationImprecise,
PrivateKeySizeInBytes
),
873
/// <paramref name="source" /> has a length that is not <see cref="
PrivateKeySizeInBytes
" />.
898
/// <paramref name="source" /> has a length that is not <see cref="
PrivateKeySizeInBytes
" />.
909
if (source.Length !=
PrivateKeySizeInBytes
)
1458
int size =
PrivateKeySizeInBytes
+ 32;
1493
int pkcs8SizeInBytes = pkcs8Preamble.Length +
PrivateKeySizeInBytes
;
1502
Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length,
PrivateKeySizeInBytes
);
1524
int initialSize =
PrivateKeySizeInBytes
+ 32;
1562
if (privateKey.Length !=
PrivateKeySizeInBytes
)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (2)
127
Debug.Assert(destination.Length ==
PrivateKeySizeInBytes
);
226
if (ecKey.PrivateKey.Length !=
PrivateKeySizeInBytes
)