Functions | |
| ops_boolean_t | ops_encrypt_file (const char *input_filename, const char *output_filename, const ops_keydata_t *pub_key, const ops_boolean_t use_armour, const ops_boolean_t allow_overwrite) |
| Encrypt a file. | |
| void | ops_encrypt_stream (ops_create_info_t *cinfo, const ops_keydata_t *public_key, const ops_secret_key_t *secret_key, const ops_boolean_t compress, const ops_boolean_t use_armour) |
| Encrypt a compressed, signed stream. | |
| ops_boolean_t | ops_decrypt_memory (const unsigned char *encrypted_memory, int em_length, unsigned char **decrypted_memory, int *out_length, ops_keyring_t *keyring, const ops_boolean_t use_armour, ops_parse_cb_t *cb_get_passphrase) |
| Decrypt a chunk of memory, containing a encrypted stream. | |
| ops_boolean_t | ops_decrypt_file (const char *input_filename, const char *output_filename, ops_keyring_t *keyring, const ops_boolean_t use_armour, const ops_boolean_t allow_overwrite, ops_parse_cb_t *cb_get_passphrase) |
| Decrypt a file. | |
|
||||||||||||||||||||||||||||
|
Decrypt a file.
|
|
||||||||||||||||||||||||||||||||
|
Decrypt a chunk of memory, containing a encrypted stream.
|
|
||||||||||||||||||||||||
|
Encrypt a file.
|
|
||||||||||||||||||||||||
|
Encrypt a compressed, signed stream.
const char* filename = "armour_nocompress_sign.asc"; ops_create_info_t *info; int fd = ops_setup_file_write(&info, filename, ops_true); if (fd < 0) { fprintf(stderr, "Cannot write to %s\n", filename); return -1; } ops_encrypt_stream(info, public_key, secret_key, ops_false, ops_true); ops_write(cleartext, strlen(cleartext), info); ops_writer_close(info); ops_create_info_delete(info); |
1.4.6