~ubuntu-branches/ubuntu/precise/dropbear/precise

« back to all changes in this revision

Viewing changes to libtomcrypt/src/mac/omac/omac_process.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2007-03-02 20:48:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070302204818-ozmbou2sbyj7dus5
Tags: 0.49-1
* new upstream release, fixes
  * CVE-2007-1099: dropbear dbclient insufficient warning on hostkey
    mismatch (closes: #412899).
  * dbclient uses static "Password:" prompt instead of using the server's
    prompt (closes: #394996).
* debian/control: Suggests: openssh-client, not ssh (closes: #405686);
  Standards-Version: 3.7.2.2.
* debian/README.Debian: ssh -> openssh-server, openssh-client; remove
  'Replacing OpenSSH "sshd" with Dropbear' part, this is simply done by not
  installing the openssh-server package.
* debian/README.runit: runsvstat -> sv status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * The library is free for all purposes without any express
7
7
 * guarantee it works.
8
8
 *
9
 
 * Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.org
 
9
 * Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.com
10
10
 */
11
11
#include "tomcrypt.h"
12
12
 
16
16
*/
17
17
 
18
18
 
19
 
#ifdef OMAC
 
19
#ifdef LTC_OMAC
20
20
 
21
21
/** 
22
22
   Process data through OMAC
49
49
              *((LTC_FAST_TYPE*)(&omac->prev[y])) ^= *((LTC_FAST_TYPE*)(&in[y]));
50
50
          }
51
51
          in += 16;
52
 
          cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key);
 
52
          if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key)) != CRYPT_OK) {
 
53
             return err;
 
54
          }
53
55
      }
54
56
      inlen -= x;
55
57
    }
61
63
          for (x = 0; x < (unsigned long)omac->blklen; x++) {
62
64
              omac->block[x] ^= omac->prev[x];
63
65
          }
64
 
          cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key);
 
66
          if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key)) != CRYPT_OK) {
 
67
             return err;
 
68
          }
65
69
          omac->buflen = 0;
66
70
       }
67
71
 
80
84
 
81
85
 
82
86
/* $Source: /cvs/libtom/libtomcrypt/src/mac/omac/omac_process.c,v $ */
83
 
/* $Revision: 1.6 $ */
84
 
/* $Date: 2005/05/05 14:35:58 $ */
 
87
/* $Revision: 1.9 $ */
 
88
/* $Date: 2006/11/03 00:39:49 $ */