search for: des_decrypt

Displaying 3 results from an estimated 3 matches for "des_decrypt".

Did you mean: aes_decrypt
2000 Jan 19
1
Potentially serious (but rare) issue with buffer.c and cipher.c
...16 +45,16 @@ { des_cblock iv1; - memcpy(&iv1, iv2, 8); + memmove(&iv1, iv2, 8); des_cbc_encrypt(src, dest, len, ks1, &iv1, DES_ENCRYPT); - memcpy(&iv1, (char *)dest + len - 8, 8); + memmove(&iv1, (char *)dest + len - 8, 8); des_cbc_encrypt(dest, dest, len, ks2, iv2, DES_DECRYPT); - memcpy(iv2, &iv1, 8); /* Note how iv1 == iv2 on entry and exit. */ + memmove(iv2, &iv1, 8); /* Note how iv1 == iv2 on entry and exit. */ des_cbc_encrypt(dest, dest, len, ks3, iv3, DES_ENCRYPT); - memcpy(iv3, (char *)dest + len - 8, 8); + memmove(iv3, (char *)dest + len - 8, 8); }...
2001 Jun 06
0
snk authentication
...x; + unsigned char digest[16]; + + if(data[0] ){ + des_string_to_key(pass, &kblock); + des_set_key((des_cblock *)kblock, keysched); + p = (char *)&iv; + for(i=0; i < 8; i++)*p++ = 130-i; + + des_cbc_encrypt((des_cblock *)data, (des_cblock *)kbuf, 16l, + keysched, &iv, DES_DECRYPT); + j = (kbuf[8]&0xff) + (kbuf[9]&0xff) * 256; + if( j < 0 || j >=reslen){ + return 1; + } + MD5_Init(&ctx); + MD5_Update(&ctx, (unsigned char *)&kbuf[8], 2); + MD5_Update(&ctx, (unsigned char *)&kbuf[10], (j<=6) ? j : 6); + + strncpy(res, &kbuf[...
2006 Sep 12
1
openssh (OpenBSD) , bsdauth and tis authsrv
nuqneH, I've tried using TIS authsrv authentication via bsd auth and found it quite limited. The most important restriction it does not log ip and fqdn of the remote peer, nor the application name, to the authentication server. It does not matter much for TIS authsrv, but since other applications do provide such information, our authsrv version uses it for extra authentication restrictions.