10 // encrypt_message() - encrypt message in memory
13 // session (in) session handle
14 // src (in) message to encrypt
15 // extra (in) extra keys for encryption
16 // dst (out) pointer to new encrypted message or NULL on failure
17 // enc_format (in) encrypted format
20 // PEP_STATUS_OK on success
21 // PEP_KEY_NOT_FOUND at least one of the receipient keys
23 // PEP_KEY_HAS_AMBIG_NAME at least one of the receipient keys has
25 // PEP_GET_KEY_FAILED cannot retrieve key
28 // the ownership of the new message goes to the caller
30 DYNAMIC_API PEP_STATUS encrypt_message(
35 PEP_enc_format enc_format
39 // decrypt_message() - decrypt message in memory
42 // session (in) session handle
43 // src (in) message to decrypt
44 // dst (out) pointer to new decrypted message or NULL on failure
45 // enc_format (in) unencrypted format
48 // error status or PEP_STATUS_OK on success
51 // the ownership of the new message goes to the caller
53 DYNAMIC_API PEP_STATUS decrypt_message(
57 PEP_enc_format enc_format