12 references to PrivateKeySizeInBytes
System.Security.Cryptography (12)
System\Security\Cryptography\X25519DiffieHellman.cs (11)
156
byte[] buffer = new byte[
PrivateKeySizeInBytes
];
176
if (destination.Length !=
PrivateKeySizeInBytes
)
179
SR.Format(SR.Argument_DestinationImprecise,
PrivateKeySizeInBytes
),
787
/// <paramref name="source" /> has a length that is not <see cref="
PrivateKeySizeInBytes
" />.
812
/// <paramref name="source" /> has a length that is not <see cref="
PrivateKeySizeInBytes
" />.
823
if (source.Length !=
PrivateKeySizeInBytes
)
1372
int size =
PrivateKeySizeInBytes
+ 32;
1406
int pkcs8SizeInBytes = pkcs8Preamble.Length +
PrivateKeySizeInBytes
;
1415
Span<byte> privateKeyBuffer = destination.Slice(pkcs8Preamble.Length,
PrivateKeySizeInBytes
);
1437
int initialSize =
PrivateKeySizeInBytes
+ 32;
1475
if (privateKey.Length !=
PrivateKeySizeInBytes
)
System\Security\Cryptography\X25519DiffieHellmanImplementation.OpenSsl.cs (1)
52
Debug.Assert(destination.Length ==
PrivateKeySizeInBytes
);