~cpick/mongrel2/release

« back to all changes in this revision

Viewing changes to src/polarssl/padlock.c

  • Committer: Chris Pick
  • Date: 2013-06-30 16:39:57 UTC
  • mfrom: (1106.1.15)
  • Revision ID: git-v1:ec39967acb6bc9867ed9b9dc3774304ca6b9c294
Merge tag 'v1.8.1' into debian

Hotfix for github issue 148

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#if defined(POLARSSL_PADLOCK_C)
35
35
 
36
 
#include "polarssl/aes.h"
37
36
#include "polarssl/padlock.h"
38
37
 
39
38
#if defined(POLARSSL_HAVE_X86)
40
39
 
41
 
#include <string.h>
42
 
 
43
40
/*
44
41
 * PadLock detection routine
45
42
 */
115
112
 */
116
113
int padlock_xcryptcbc( aes_context *ctx,
117
114
                       int mode,
118
 
                       int length,
 
115
                       size_t length,
119
116
                       unsigned char iv[16],
120
117
                       const unsigned char *input,
121
118
                       unsigned char *output )
122
119
{
123
 
    int ebx, count;
 
120
    int ebx;
 
121
    size_t count;
124
122
    unsigned long *rk;
125
123
    unsigned long *iw;
126
124
    unsigned long *ctrl;