Javax.Crypto.KeyAgreement.GenerateSecret Method
Generates the shared secret and stores it into the buffer sharedSecred at offset.

Syntax

[Android.Runtime.Register("generateSecret", "([BI)I", "")]
public int GenerateSecret (byte[] sharedSecret, int offset)

Parameters

sharedSecret
the buffer to store the shared secret.
offset
the offset in the buffer.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this key agreement is not complete.
Javax.Crypto.ShortBufferExceptionif the specified buffer is too small for the shared secret.

Remarks

Generates the shared secret and stores it into the buffer sharedSecred at offset.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1