[so] [Tema2][Linux] Problema decriptari consecutive

Alexandra Ghecenco alexandra.ghecenco at gmail.com
Sun Apr 8 15:22:25 EEST 2012


On 04/08/2012 12:50 AM, Razvan Crainea wrote:
> On Fri, Apr 6, 2012 at 9:28 PM, Alexandra Ghecenco
> <alexandra.ghecenco at gmail.com>  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 at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> student at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> student at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> teststudent at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> teststudent at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> teststudent at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> student at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> teststudent at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> student at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> student at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> student at spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1
>> ^C
>> student at 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!


More information about the so mailing list