RSA Encryption Library
rsa_free
rsa_free( rsa var )
Frees the RSA indicated by rsa.
Returns 1 on success, 0 on error.
rsa_generate_keypair
rsa_generate_keypair( pubkey_file, privkey_file, bits, e, passphrase )
Generates an RSA keypair, saving the public key in pubkey_file, the private key in privkey_file, and encrypting the private key with passphrase.
Returns 1 on success, 0 on error.
rsa_generate_keypair_mem
rsa_generate_keypair_mem( pubkey var, privkey var, bits, e, passphrase )
rsa_load_privatekey
rsa_load_privatekey( privkey_file, rsa var, passphrase )
Load an encrypted RSA private key from a PKCS#8 file specified by privkey_file, and decrypt it using passphrase.
Returns 1 on success, 0 on error.
rsa_load_privatekey_mem
rsa_load_privatekey_mem( privkey, rsa var, passphrase )
rsa_load_publickey
rsa_load_publickey( pubkey_file, rsa var )
Load an RSA public key from a PKCS#1 file specified by "pubkey_file".
rsa_load_publickey_mem
rsa_load_publickey_mem( pubkey, rsa var )
rsa_private_decrypt
rsa_private_decrypt( rsa, encrypted, plaintext var )
Decrypts the data in encrypted, storing the result in plaintext, using the private key portion of the RSA structure specified by rsa.
Returns 1 on success, 0 on error.
rsa_private_encrypt
rsa_private_encrypt( rsa, plaintext, encrypted var )
Encrypts the data in plaintext, storing the result in encrypted, using the private key portion of the RSA structure specified by rsa.
Returns 1 on success, 0 on error.
rsa_public_decrypt
rsa_public_decrypt( rsa, encrypted, plaintext var )
Decrypt the data in encrypted, storing the result in plaintext, using the public key portion of the RSA structure specified by rsa.
Returns 1 on success, 0 on error.
rsa_public_encrypt
rsa_public_encrypt( rsa, plaintext, encrypted var )
Encrypt the data in plaintext, storing the result in encrypted, using the public key portion of the RSA structure specified by rsa.
Returns 1 on success, 0 on error.
rsa_save_privatekey
rsa_save_privatekey( privkey_file, rsa var, passphrase )
rsa_save_privatekey_mem
rsa_save_privatekey_mem( privkey var, rsa var, passphrase )
rsa_sign
rsa_sign( rsa, buffer, signature var )
Sign the data in "buffer" with the RSA private key specified by "rsa", returning the result in "signature" where rsa = Value returned from one of the rsa_load_key routines, buffer = Buffer to sign, signature = Resulting signature.
Returns 1 on success, 0 on failure. Requires OpenSSL 0.9.7 or greater.
rsa_verify
rsa_verify( rsa, buffer, signature )
Verify the data in "buffer" with the RSA public key specified by "rsa" and the signature in "signature" where rsa = Value returned from one of the rsa_load_key routines, buffer = Buffer to sign, signature = Signature.
Returns 1 on success, 0 on verification failure or error. Requires OpenSSL 0.9.7 or greater.
-- Other Annotations --
topic blowfish
topic comments
topic filesystem-both
topic inspection
topic math
topic operators
topic time
topic user-examples
topic variables
item acos
item asciichar
item dir
item file_create
item gettoken
item glosub
item indexof
item miva_array_sort
item miva_struct_members
item miva_variable_value
item MvSMTP
item substring
item xml_parse_set_colon_replacement
Next »
« Previous