Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 13:58:37 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/crypto/rc4 rc4.c
Message-ID:  <200812161358.mBGDwqYr069985@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mav         2008-12-16 13:58:37 UTC

  FreeBSD src repository

  Modified files:
    sys/crypto/rc4       rc4.c 
  Log:
  SVN rev 186179 on 2008-12-16 13:58:37Z by mav
  
  Avoid 256 integer divisions per rc4_init() call. Replace it with using
  separate index variable.
  
  It gives more then double rc4_init() performance increase on tested i386 P4.
  It also gives about 15% speedup to PPTP VPN with stateless MPPE encryption
  (by ng_mppc) which calls rc4_init() for every packet.
  
  Revision  Changes    Path
  1.6       +5 -3      src/sys/crypto/rc4/rc4.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812161358.mBGDwqYr069985>