REBOL Programming/rsa-make-key

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

RSA-GENERATE-KEY obj length generator 

DESCRIPTION:[edit]

Creates a new private/public key pair

RSA-GENERATE-KEY is a native value.

ARGUMENTS[edit]

  • obj -- The RSA key object (Type: object)
  • length -- Key length (Type: integer)
  • generator -- Generator ('e' value) (Type: integer)

SOURCE CODE[edit]

rsa-generate-key: native[
    "Creates a new private/public key pair" 
    obj [object!] "The RSA key object" 
    length [integer!] "Key length" 
    generator [integer!] "Generator ('e' value)"
]