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


4719
4720
# File 'Monkeybrains.rb', line 4719

def initialize(options)
end

Instance Method Details

addKey(key) ⇒ Object

Add a public Key to KeyAgreement.

Parameters:

Raises:

Since:

  • 3.0.0


4728
4729
# File 'Monkeybrains.rb', line 4728

def addKey(key)
end

generateSecretToybox::Lang::ByteArray

Generate a shared secret for the KeyAgreement.

Returns:

Since:

  • 3.0.0


4734
4735
# File 'Monkeybrains.rb', line 4734

def generateSecret()
end