Generates the shared secret corresponding to the private key of
one party and the public key of another party.
Namespace: BasicCard.Crypto.ECAssembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)
Syntax
C# |
---|
public byte[] SharedSecret(
byte[] PrivateKey,
byte[] PublicKey
) |
Visual Basic |
---|
Public Function SharedSecret (
PrivateKey As Byte(),
PublicKey As Byte()
) As Byte() |
Visual C++ |
---|
public:
virtual array<unsigned char>^ SharedSecret(
array<unsigned char>^ PrivateKey,
array<unsigned char>^ PublicKey
) sealed |
F# |
---|
abstract SharedSecret :
PrivateKey : byte[] *
PublicKey : byte[] -> byte[]
override SharedSecret :
PrivateKey : byte[] *
PublicKey : byte[] -> byte[] |
Parameters
- PrivateKey
- Type: array<System..::..Byte>[]()[][]
Private key.
- PublicKey
- Type: array<System..::..Byte>[]()[][]
Public key.
Return Value
Type:
array<Byte>[]()[][]Shared secret.
Implements
EllipticCurve..::..SharedSecret(array<Byte>[]()[][], array<Byte>[]()[][])Remarks
Exceptions
See Also