where can I find good basic ecryptfs API examples?

Asked by Ivan Zorin

EcryptFS is a very good thing, plus it provides -dev package, so any other developer can write ecryptfs-based apps, and my question is - does anyone now simple examples of C code about how to call functions from include/ecryptfs.h for crypting (with password asking)/decrypting folders?
It can take not so much time for understanding by myself how to do it, but i prefer to understanding such things by examples, so I will be very appreciate, if someone will point me for good docs/articles about ecryptfs API usage with good working examples.

Question information

English Edit question
eCryptfs Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Tyler Hicks (tyhicks) said :

Hi Ivan - libecryptfs is not for performing crypto operations on directories or even files. libecryptfs contains common functionality to do things like take a password, perform key strengthening to turn it into a key, and insert it into the kernel keyring in preparation for performing an eCryptfs mount. The best/only examples of using libecryptfs can be found in the same source tar that libecryptfs comes in, ecryptfs-utils. There we have the mount helper, ecryptfsd, etc., which all use libecryptfs.

Can you help with this problem?

Provide an answer of your own, or ask Ivan Zorin for more information if necessary.

To post a message you must log in.