Rebol Programming/dh-compute-key

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:[edit | edit source]

DH-COMPUTE-KEY obj public-key 

DESCRIPTION:[edit | edit source]

Computes the resulting, negotiated key from a private/public key pair and the peer's public key.

DH-COMPUTE-KEY is a native value.

ARGUMENTS[edit | edit source]

  • obj -- The DH key object (Type: object)
  • public-key -- Peer's public key (Type: binary)

SOURCE CODE[edit | edit source]

dh-compute-key: native[
    {Computes the resulting, negotiated key from a
^- private/public key pair and the peer's public key.} 
    obj [object!] "The DH key object" 
    public-key [binary!] "Peer's public key"
]