Rebol Programming/rsa-generate-key

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

USAGE:[edit | edit source]

RSA-GENERATE-KEY obj length generator 

DESCRIPTION:[edit | edit source]

Creates a new private/public key pair

RSA-GENERATE-KEY is a native value.

ARGUMENTS[edit | edit source]

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

SOURCE CODE[edit | edit source]

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)"
]