FreeBSD Bugzilla – Attachment 163832 Details for
Bug 205004
Switch ppp(8) to use the "modern" DES_ functions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Switch from des_ to DES_ prefix functions
ppp-chap_ms-c-des-DES.patch (text/plain), 980 bytes, created by
Sevan Janiyan
on 2015-12-04 01:14:12 UTC
(
hide
)
Description:
Switch from des_ to DES_ prefix functions
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2015-12-04 01:14:12 UTC
Size:
980 bytes
patch
obsolete
>Index: usr.sbin/ppp/chap_ms.c >=================================================================== >--- usr.sbin/ppp/chap_ms.c (revision 291729) >+++ usr.sbin/ppp/chap_ms.c (working copy) >@@ -103,18 +103,18 @@ > des_key[6] = Get7Bits(key, 42); > des_key[7] = Get7Bits(key, 49); > >- des_set_odd_parity((des_cblock *)des_key); >+ DES_set_odd_parity((DES_cblock *)des_key); > } > > static void /* IN 8 octets IN 7 octest OUT 8 octets */ > DesEncrypt(u_char *clear, u_char *key, u_char *cipher) > { >- des_cblock des_key; >- des_key_schedule key_schedule; >+ DES_cblock des_key; >+ DES_key_schedule key_schedule; > > MakeKey(key, des_key); >- des_set_key(&des_key, key_schedule); >- des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher, key_schedule, 1); >+ DES_set_key(&des_key, &key_schedule); >+ DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher, &key_schedule, 1); > } > > static void /* IN 8 octets IN 16 octets OUT 24 octets */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205004
: 163832