Modify

Opened 4 years ago

Closed 4 years ago

Last modified 22 months ago

#10637 closed enhancement (obsolete)

Crypto SHA1 backport from Linux 3.2

Reported by: Nilfred <nilfred@…> Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: crypto SHA1 Cc:

Description

Following a topic on Wiki VPN about a new SHA1 code commit on Linux 3.2, I did a full backport to Linux 3.0 expecting speed improvements.

Attached patch tested against target/linux/generic/patches-3.0 on orion (ARM)

Attachments (1)

259-crypto_SHA1_3.2_backport.patch (8.0 KB) - added by Nilfred <nilfred@…> 4 years ago.
target/linux/generic/patches-3.0 SHA1 from upcomming 3.2

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by Nilfred <nilfred@…>

target/linux/generic/patches-3.0 SHA1 from upcomming 3.2

comment:1 Changed 4 years ago by birnenschnitzel

Patch cannot be tested becuase I only have backfire 10.03.1-rc6 at the moment. It definetly does not work for the 2.6.32 kernel. cryptohash.h only contains the following lines in that kernel.

#ifndef __CRYPTOHASH_H
#define __CRYPTOHASH_H

#define SHA_DIGEST_WORDS 5
#define SHA_WORKSPACE_WORDS 80

void sha_init(__u32 *buf);
void sha_transform(__u32 *digest, const char *data, __u32 *W);

__u32 half_md4_transform(__u32 buf[4], __u32 const in[8]);

#endif

Maybe someone with newer trunk build environment can help out.

Markus

comment:2 Changed 4 years ago by birnenschnitzel

Hello,

just upgraded my DIR-825 (AR7161) to current trunk. Your patch was applied but the system gives an oops when racoon enters phase 2.

Sep  8 19:23:59 FungKu daemon.debug racoon: 2011-09-08 19:23:59: DEBUG: hmac(hmac_sha1)
Sep  8 19:23:59 FungKu daemon.debug racoon: 2011-09-08 19:23:59: DEBUG: hmac(hmac_sha1)
Sep  8 19:23:59 FungKu kern.alert kernel: [   69.220000] CPU 0 Unable to handle kernel paging request at virtual address 6934d57e, epc == 6934d57f, ra == 6934d57f
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] Oops[#1]:
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] Cpu 0
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $ 0   : 00000000 00000000 00000000 d9c623d1
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $ 4   : 833e5ae4 82881140 00000000 7f773690
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $ 8   : 00000000 00000000 00000001 00000050
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $12   : c854f7bc 9a8e4262 d7a432c3 e98b27ce
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $16   : bcd13e87 418b8ef1 14162ae7 82ac5c89
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $20   : ef7b718e 444039a2 82881100 832b7b88
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $24   : 983f5067 961e4a3c
Sep  8 19:23:59 FungKu kern.warn kernel: [   69.230000] $28   : 833e4000 833e5a38 833e5b40 6934d57f
Sep  8 19:23:59 FungKu user.info sysinit: 2011-09-08 19:23:59: DEBUG: hmac(Segmentation fault

comment:3 Changed 4 years ago by nbd

  • Resolution set to obsolete
  • Status changed from new to closed

3.3 is the default kernel version now, no need for backports

comment:4 Changed 22 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.