* [dm-crypt] [cryptsetup] Develop Environment for cryptsetup
@ 2013-06-28 3:49 Trinh Van Thanh
2013-06-28 5:04 ` .. ink ..
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Trinh Van Thanh @ 2013-06-28 3:49 UTC (permalink / raw)
To: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
Hi all,
I am a student from Vietnam. I want to develop my cryptsetup with some new
features. But I get some problems with all source code of cryptsetup. I
don't have skill for read and understand configure and makefiles.
So, I want to ask all of you some questions:
- What IDE do you develop cryptsetup on?
- How do I debug cryptsetup?
- How do I modify Makefile, Do I need understand all content in makefiles,
configure file?
Thanks so much.
--
*Trịnh Văn Thành*
Information & Communication System - High Quality Class, P.52
Center for Training of Excellent Students (CTES)
Hanoi University of Science and Technology (HUST)
Add: No.5, 64/25 Lane, Phan Dinh Giot Street, Thanh Xuan Dist, Hanoi.
Mobile: (+84) 09 86 76 38 96
Email: trinhvanthanh@gmail.com
[-- Attachment #2: Type: text/html, Size: 2015 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-crypt] [cryptsetup] Develop Environment for cryptsetup
2013-06-28 3:49 [dm-crypt] [cryptsetup] Develop Environment for cryptsetup Trinh Van Thanh
@ 2013-06-28 5:04 ` .. ink ..
[not found] ` <CAHRe4pPfqhfS1+o56wDf7L3j0AAxib+AdHSRMQTJ8BACbhknSQ@mail.gmail.com>
2013-06-28 5:49 ` .. ink ..
2013-06-28 23:05 ` Arno Wagner
2 siblings, 1 reply; 6+ messages in thread
From: .. ink .. @ 2013-06-28 5:04 UTC (permalink / raw)
To: Trinh Van Thanh; +Cc: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
>
> I am a student from Vietnam. I want to develop my cryptsetup with some new
> features. But I get some problems with all source code of cryptsetup. I
> don't have skill for read and understand configure and makefiles.
>
> what new feature do you want to add? have you looked at cryptsetup
library API? what do you find lacking in it to want to go under it?
[-- Attachment #2: Type: text/html, Size: 675 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-crypt] [cryptsetup] Develop Environment for cryptsetup
[not found] ` <CAHRe4pPfqhfS1+o56wDf7L3j0AAxib+AdHSRMQTJ8BACbhknSQ@mail.gmail.com>
@ 2013-06-28 5:33 ` .. ink ..
0 siblings, 0 replies; 6+ messages in thread
From: .. ink .. @ 2013-06-28 5:33 UTC (permalink / raw)
To: Trinh Van Thanh; +Cc: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 820 bytes --]
On Fri, Jun 28, 2013 at 1:19 AM, Trinh Van Thanh <eyestormit@gmail.com>wrote:
> I want to add cryptsetup into a GUI service.
>
>
>
You can interface with cryptsetup in two different ways.
1. Though its binary interface.From the terminal,run "cryptsetup --help"
and "man cryptsetup" to get more info on this interface.
2. Through the library API interface,you can get more info on this
interface from this link:
http://wiki.cryptsetup.googlecode.com/git/API/index.html
Which one of the two will be more appropriate depends on your use case but
both can be used from your GUI application.
These two interface should be sufficient for you and if you are to look at
cryptsetup code,it should be only go get more insight on how to use the
library API and not to extend it as that is most likely not want you want
to do.
[-- Attachment #2: Type: text/html, Size: 1348 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-crypt] [cryptsetup] Develop Environment for cryptsetup
2013-06-28 3:49 [dm-crypt] [cryptsetup] Develop Environment for cryptsetup Trinh Van Thanh
2013-06-28 5:04 ` .. ink ..
@ 2013-06-28 5:49 ` .. ink ..
2013-06-28 23:05 ` Arno Wagner
2 siblings, 0 replies; 6+ messages in thread
From: .. ink .. @ 2013-06-28 5:49 UTC (permalink / raw)
To: Trinh Van Thanh; +Cc: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]
back your questions here
> So, I want to ask all of you some questions:
>
> - What IDE do you develop cryptsetup on?
>
I am not one of cryptsetup developers,but i am interested to know too.In my
code that interfaces with cryptsetup library,i do not use one as kwrite(
KDE text editor ) seem to be suffient for me.C code doesnt carry massive
objects with 1000+ member functions and properties and hence a fully
fledged IDE is not really necessary.
>
> - How do I debug cryptsetup?
>
If you use the executable,call it with "--debug" option to get more output
If you use the library,library info can be found in this link:
http://wiki.cryptsetup.googlecode.com/git/API/group__dbg.html
The full library API is at:
http://wiki.cryptsetup.googlecode.com/git/API/libcryptsetup_8h.html
>
> - How do I modify Makefile, Do I need understand all content in makefiles,
> configure file?
>
> You should not need to.If you want to go the library API way,just download
cryptsetup development package from your distro package system and the only
look at "libcryptsetup.h" header file as the interface to cryptsetup to
work with.
It is also probably a good idea to look at the FAQ at:
http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions
It has answers even to questions you would never though to ask even if your
life depended on you asking them :-)
[-- Attachment #2: Type: text/html, Size: 2659 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-crypt] [cryptsetup] Develop Environment for cryptsetup
2013-06-28 3:49 [dm-crypt] [cryptsetup] Develop Environment for cryptsetup Trinh Van Thanh
2013-06-28 5:04 ` .. ink ..
2013-06-28 5:49 ` .. ink ..
@ 2013-06-28 23:05 ` Arno Wagner
2013-06-30 1:54 ` Trinh Van Thanh
2 siblings, 1 reply; 6+ messages in thread
From: Arno Wagner @ 2013-06-28 23:05 UTC (permalink / raw)
To: dm-crypt
Hi,
On Fri, Jun 28, 2013 at 10:49:25AM +0700, Trinh Van Thanh wrote:
> Hi all,
>
> I am a student from Vietnam. I want to develop my cryptsetup with some new
> features. But I get some problems with all source code of cryptsetup. I
> don't have skill for read and understand configure and makefiles.
Makefiles, you will need to learn how to read and write. Don't start
with something as difficult though. Also, don't modify cryptsetup itself,
use the library and start with somethign simple. You can, for example,
start by tryingi to understand and modify the things in the misc.
directory.
> So, I want to ask all of you some questions:
>
> - What IDE do you develop cryptsetup on?
IDE? Why would you use an IDE? I use emacs as editor, that is enough.
This is not Java, were an IDE is almost needed because there is
so much syntactic noise.
> - How do I debug cryptsetup?
The old wy: Code-embedded debug instratctions. You may also
try DDD.
> - How do I modify Makefile, Do I need understand all content in makefiles,
> configure file?
Don't go that way, see above.
Arno
> Thanks so much.
>
> --
> *Trịnh Văn Thành*
>
> Information & Communication System - High Quality Class, P.52
> Center for Training of Excellent Students (CTES)
> Hanoi University of Science and Technology (HUST)
>
> Add: No.5, 64/25 Lane, Phan Dinh Giot Street, Thanh Xuan Dist, Hanoi.
> Mobile: (+84) 09 86 76 38 96
> Email: trinhvanthanh@gmail.com
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
There are two ways of constructing a software design: One way is to make it
so simple that there are obviously no deficiencies, and the other way is to
make it so complicated that there are no obvious deficiencies. The first
method is far more difficult. --Tony Hoare
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm-crypt] [cryptsetup] Develop Environment for cryptsetup
2013-06-28 23:05 ` Arno Wagner
@ 2013-06-30 1:54 ` Trinh Van Thanh
0 siblings, 0 replies; 6+ messages in thread
From: Trinh Van Thanh @ 2013-06-30 1:54 UTC (permalink / raw)
To: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 2601 bytes --]
Thanks all,
I think cryptsetup API is the best solution for me.
On Sat, Jun 29, 2013 at 6:05 AM, Arno Wagner <arno@wagner.name> wrote:
> Hi,
>
> On Fri, Jun 28, 2013 at 10:49:25AM +0700, Trinh Van Thanh wrote:
> > Hi all,
> >
> > I am a student from Vietnam. I want to develop my cryptsetup with some
> new
> > features. But I get some problems with all source code of cryptsetup. I
> > don't have skill for read and understand configure and makefiles.
>
> Makefiles, you will need to learn how to read and write. Don't start
> with something as difficult though. Also, don't modify cryptsetup itself,
> use the library and start with somethign simple. You can, for example,
> start by tryingi to understand and modify the things in the misc.
> directory.
>
>
> > So, I want to ask all of you some questions:
> >
> > - What IDE do you develop cryptsetup on?
>
> IDE? Why would you use an IDE? I use emacs as editor, that is enough.
> This is not Java, were an IDE is almost needed because there is
> so much syntactic noise.
>
> > - How do I debug cryptsetup?
>
> The old wy: Code-embedded debug instratctions. You may also
> try DDD.
>
> > - How do I modify Makefile, Do I need understand all content in
> makefiles,
> > configure file?
>
> Don't go that way, see above.
>
> Arno
>
>
>
> > Thanks so much.
> >
> > --
> > *Trịnh Văn Thành*
> >
> > Information & Communication System - High Quality Class, P.52
> > Center for Training of Excellent Students (CTES)
> > Hanoi University of Science and Technology (HUST)
> >
> > Add: No.5, 64/25 Lane, Phan Dinh Giot Street, Thanh Xuan Dist, Hanoi.
> > Mobile: (+84) 09 86 76 38 96
> > Email: trinhvanthanh@gmail.com
>
> > _______________________________________________
> > dm-crypt mailing list
> > dm-crypt@saout.de
> > http://www.saout.de/mailman/listinfo/dm-crypt
>
>
> --
> Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
> GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
> ----
> There are two ways of constructing a software design: One way is to make it
> so simple that there are obviously no deficiencies, and the other way is to
> make it so complicated that there are no obvious deficiencies. The first
> method is far more difficult. --Tony Hoare
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
>
--
*Trịnh Văn Thành*
Add: No.5, 64/25 Lane, Phan Dinh Giot Street, Thanh Xuan Dist, Hanoi.
[-- Attachment #2: Type: text/html, Size: 3981 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-06-30 1:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-28 3:49 [dm-crypt] [cryptsetup] Develop Environment for cryptsetup Trinh Van Thanh
2013-06-28 5:04 ` .. ink ..
[not found] ` <CAHRe4pPfqhfS1+o56wDf7L3j0AAxib+AdHSRMQTJ8BACbhknSQ@mail.gmail.com>
2013-06-28 5:33 ` .. ink ..
2013-06-28 5:49 ` .. ink ..
2013-06-28 23:05 ` Arno Wagner
2013-06-30 1:54 ` Trinh Van Thanh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.