~ubuntu-branches/ubuntu/wily/nettle/wily

« back to all changes in this revision

Viewing changes to serpent-set-key.c

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-07 22:57:14 UTC
  • mfrom: (8.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130507225714-s331yr8ov53dtt17
Tags: 2.7-2
Tag some (ECC related) symbols that only exist on some architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 * 
25
25
 * You should have received a copy of the GNU Lesser General Public License
26
26
 * along with the nettle library; see the file COPYING.LIB.  If not, write to
27
 
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
28
 
 * MA 02111-1307, USA.
 
27
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
28
 * MA 02111-1301, USA.
29
29
 */
30
30
 
31
31
/* This file is derived from cipher/serpent.c in Libgcrypt v1.4.6.
270
270
  do {                                                                  \
271
271
    uint32_t _wn = (w)[(i)] ^ (w)[((i)+3)&7] ^ w[((i)+5)&7]             \
272
272
      ^ w[((i)+7)&7] ^ PHI ^ (k)++;                                     \
273
 
    ((w)[(i)] = ROL32(_wn, 11));                                        \
 
273
    ((w)[(i)] = ROTL32(11, _wn));                                       \
274
274
  } while (0)
275
275
 
276
276
/* Note: Increments k four times and keys once */