~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to crypto/aes/aes_wrap.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-12-12 15:37:21 UTC
  • mto: (1.2.1 upstream) (11.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20101212153721-mfw51stum5hwztpd
Tags: upstream-1.0.0c
ImportĀ upstreamĀ versionĀ 1.0.0c

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                        A[7] ^= (unsigned char)(t & 0xff);
86
86
                        if (t > 0xff)   
87
87
                                {
88
 
                                A[6] ^= (unsigned char)((t & 0xff) >> 8);
89
 
                                A[5] ^= (unsigned char)((t & 0xff) >> 16);
90
 
                                A[4] ^= (unsigned char)((t & 0xff) >> 24);
 
88
                                A[6] ^= (unsigned char)((t >> 8) & 0xff);
 
89
                                A[5] ^= (unsigned char)((t >> 16) & 0xff);
 
90
                                A[4] ^= (unsigned char)((t >> 24) & 0xff);
91
91
                                }
92
92
                        memcpy(R, B + 8, 8);
93
93
                        }
119
119
                        A[7] ^= (unsigned char)(t & 0xff);
120
120
                        if (t > 0xff)   
121
121
                                {
122
 
                                A[6] ^= (unsigned char)((t & 0xff) >> 8);
123
 
                                A[5] ^= (unsigned char)((t & 0xff) >> 16);
124
 
                                A[4] ^= (unsigned char)((t & 0xff) >> 24);
 
122
                                A[6] ^= (unsigned char)((t >> 8) & 0xff);
 
123
                                A[5] ^= (unsigned char)((t >> 16) & 0xff);
 
124
                                A[4] ^= (unsigned char)((t >> 24) & 0xff);
125
125
                                }
126
126
                        memcpy(B + 8, R, 8);
127
127
                        AES_decrypt(B, B, key);