~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to arm/sha1.c

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
void SHA1_Final(unsigned char *hash, SHA_CTX *c)
50
50
{
51
51
        uint64_t bitlen;
52
 
        uint32_t bitlen_hi, bitlen_lo; 
 
52
        uint32_t bitlen_hi, bitlen_lo;
53
53
        unsigned int i, offset, padlen;
54
54
        unsigned char bits[8];
55
55
        static const unsigned char padding[64] = { 0x80, };
69
69
        bits[5] = bitlen_lo >> 16;
70
70
        bits[6] = bitlen_lo >> 8;
71
71
        bits[7] = bitlen_lo;
72
 
        SHA1_Update(c, bits, 8); 
 
72
        SHA1_Update(c, bits, 8);
73
73
 
74
74
        for (i = 0; i < 5; i++) {
75
75
                uint32_t v = c->hash[i];