Libcrypt examples?

Kristian fiskerstrand kristian.fiskerstrand at sumptuouscapital.com
Fri Oct 17 04:01:13 CEST 2014


Not really sure how good it is to get involved in this discussion, but, ... see answers inline

Sent from my iPad

> On 16 Oct 2014, at 19:21, "Ronald F. Guilmette" <rfg at tristatelogic.com> wrote:
> 
> 
> I'm sorry that I could not reply right away.  I was called to other
> duties.
> 
> In message <8738aomjb1.fsf at vigenere.g10code.de>, 
> Werner Koch <wk at gnupg.org> wrote:
> 
>> On Wed, 15 Oct 2014 23:45, rfg at tristatelogic.com said:
>> 
>>> detailed, 134 page (PDF) manual for the library, and yet prospective
>>> users of the library, such as myself, cannot find even a single modest,
>>> real-world example of how to use the bloody thing.
>> 
>> IIRC, it has already been quoted from the introduction:
>> 
>> The reader is assumed to possess basic knowledge about applied
>> cryptography.
> 
> I believe that I do indeed already have "basic" knowledge of the subject.
> 
>> That is really important and it means that the reader knows what an IV
>> is, what an encryption mode is and which one first which purpose,why
>> padding is required, and so on.  Well, maybe this is a bit more than
>> "basic knowledge" but for us crypto plumbers this is basic.
> 
> I understand why padding may be required, I'm not sure what you mean
> by "IV", and as regards to the "mode", I think that I specified in my
> original post that symmetric key would be just fine for my purposes.

ehrm... have a look at http://en.m.wikipedia.org/wiki/Block_cipher_mode_of_operation

> (Did you mean something else by your use of the term "mode" in this
> context?  If so, what?)
> 

...

>> - From where do I take the key?
> 
> The key will be embedded in the compiled binary of the program I'm building.

This would be easily extracted and only offer limited protection

> 
>> - Do I need to derive the key from Passphrase.
> 
> I hope not.  I want this simple.  There should be no pass phrase... just
> a pre-manufactured key.
> 
>> - Which cipher mode to use.
> 
> As I said, syymetric key will be just fine for me.  I most certainly
> *do not* need public key cryptography.

See link above


More information about the Gnupg-users mailing list