On 04/08/2012 12:50 AM, Razvan Crainea wrote:
On Fri, Apr 6, 2012 at 9:28 PM, Alexandra Ghecenco
<[email protected]>  wrote:
Buna,

Am o problema bizara la decriptari consecutive pe aceleasi date. Am
constatat-o facand debug pentru alte probleme legate tot de decriptare (bad
magic number, bad decrypt etc).
De exemplu:

student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
^C
student@spook:~/2/src$

La ultima rulare, a dat seg fault in gateway. De fiecare data cand a gresit
decriptarea, in cel putin unul din server-ele 2, 3 si 4 aparea:
  digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:330:

Are cineva vreo idee de ce se intampla asa? :)

  Bună, Alexandra!

Ai verificat [1]?

[1] http://elf.cs.pub.ro/so/wiki/teme/tema-2#faq

Buna!

Da, am verificat, citesc cati octeti trebuie, iar inainte sa scriu zero-izez ca sa nu ramana in plus (si oricum scriu dimensiunea sirului inainte de sirul propriu-zis, deci stiu cat am de citit). Ceea ce nu reusesc sa-mi explic e de ce *uneori* functioneaza si alteori nu. Daca facea ceva gresit, nu ar fi trebuit sa dea eroare la decriptare de fiecare data?

Multumesc!
_______________________________________________
http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii

Raspunde prin e-mail lui