how to use libgcrypt library

Zen zhli@mailbox.gxnu.edu.cn
Fri, 25 Jul 2003 12:4:30 +0800


Neil,
Thanks for your help again. Your programe is very useful, and it can work well.

I have a question when i want to use it out of libgcrypte library. I named it sig_neil.c temporarily. It can be compiled, my compile command : 'gcc sig_neil.c -g -O2 -Wall -o sig_neil -L/usr/local/lib -lgcrypt -lnsl ', but its runing message: 'error while loading shared libraries: libgcrypt.so.1: cannot open shared object file: No such file or directory.'  

In /usr/local/lib and ./ directory, there has libgcrypt.so.1 file ,which is a link file.

Whether my compile command is incorrect? What it should be?

By the way,in the inner of libgcrypte library, i modified original Makefile, then 'make', 
run './sig_neil',its runing result is correct, but its output has: 

not enough random bytes available (need 268 bytes)
please do some other work to give the OS a chance to collect more entropy
[open]
  [data="sig-val"]
  [open]
    [data="rsa"]
    [open]
      [data="s"]
      [data="\x12\xbf\x04\xe85\x8d\x8a0u|\xf1\xa3I=H\x95hS\x9bR\xd8\xd3r\x9a\x1e=\xa1%\xa7\xe1\xb4L"]
    [close]
  [close]
[close]

What's it mean? Can i look it over?

I am a beginner in the filed of encrpytion techniques, so i am very sorry for my questions may be very childish. I wish they will not waste your too much time.

Thanks for your help.

Best regards,
Zen.