Class: Toybox::Cryptography::KeyAgreement

Inherits:
Lang::Object show all

Overview

A local private key in combination with a public key to generate a shared secret.

Since:

  • 3.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(options) ⇒ KeyAgreement

Returns a new instance of KeyAgreement

Parameters:

Options Hash (options):

Raises:

Since:

  • 3.0.0


3808
3809
# File 'Monkeybrains.rb', line 3808

def initialize(options)
end

Instance Method Details

addKey(key) ⇒ Object

Add a public Key to KeyAgreement.

Parameters:

Raises:

Since:

  • 3.0.0


3817
3818
# File 'Monkeybrains.rb', line 3817

def addKey(key)
end

generateSecretToybox::Lang::ByteArray

Generate a shared secret for the KeyAgreement.

Returns:

Since:

  • 3.0.0


3823
3824
# File 'Monkeybrains.rb', line 3823

def generateSecret()
end