- key
- the key to initialize this key agreement.
- random
- the source for any randomness needed.
Type Reason Java.Security.InvalidKeyException if the specified key cannot be used to initialize this key agreement.
Initializes this KeyAgreement with the specified key and the specified randomness source.