Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
rnp_backend_string »
« Clearsign text
PHP Manual
Function Reference
Cryptography Extensions
Rnp
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Chinese (Simplified)
Other
Rnp Functions
Table of Contents
rnp_backend_string
— Return cryptographic backend library name
rnp_backend_version
— Return cryptographic backend library version
rnp_decrypt
— Decrypt PGP message
rnp_dump_packets_to_json
— Dump OpenPGP packets stream information to the JSON string
rnp_dump_packets
— Dump OpenPGP packets stream information in humand-readable format
rnp_ffi_create
— Create the top-level object used for interacting with the library
rnp_ffi_destroy
— Destroy the top-level object used for interacting with the library
rnp_ffi_set_pass_provider
— Set password provider callback function
rnp_import_keys
— Import keys from PHP string to the keyring and receive JSON describing new/updated keys
rnp_import_signatures
— Import standalone signatures to the keyring and receive JSON describing updated keys
rnp_key_export_autocrypt
— Export minimal key for autocrypt feature (just 5 packets: key, uid, signature, encryption subkey, signature)
rnp_key_export_revocation
— Generate and export primary key revocation signature
rnp_key_export
— Export a key
rnp_key_get_info
— Get information about the key
rnp_key_remove
— Remove a key from keyring(s)
rnp_key_revoke
— Revoke a key or subkey by generating and adding revocation signature
rnp_list_keys
— Enumerate all keys present in a keyring by specified identifer type
rnp_load_keys_from_path
— Load keys from specified path
rnp_load_keys
— Load keys from PHP string
rnp_locate_key
— Search for the key
rnp_op_encrypt
— Encrypt message
rnp_op_generate_key
— Generate key
rnp_op_sign_cleartext
— Perform signing operation on a textual data, return cleartext signed message
rnp_op_sign_detached
— Perform signing operation, return detached signature(s)
rnp_op_sign
— Perform signing operation on a binary data, return embedded signature(s)
rnp_op_verify_detached
— Verify detached signatures
rnp_op_verify
— Verify embedded or cleartext signatures
rnp_save_keys_to_path
— Save keys to specified path
rnp_save_keys
— Save keys to PHP string
rnp_supported_features
— Get supported features in JSON format
rnp_version_string_full
— Full version string of RNP library
rnp_version_string
— RNP library version
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.