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

« back to all changes in this revision

Viewing changes to libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_encode.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
 
114
114
   }
115
115
 
116
116
   /* compute MGF1 of seed (k - hlen - 1) */
117
 
   if ((err = pkcs_1_mgf1(seed, hLen, hash_idx, mask, modulus_len - hLen - 1)) != CRYPT_OK) {
 
117
   if ((err = pkcs_1_mgf1(hash_idx, seed, hLen, mask, modulus_len - hLen - 1)) != CRYPT_OK) {
118
118
      goto LBL_ERR;
119
119
   }
120
120
 
124
124
   }
125
125
 
126
126
   /* compute MGF1 of maskedDB (hLen) */ 
127
 
   if ((err = pkcs_1_mgf1(DB, modulus_len - hLen - 1, hash_idx, mask, hLen)) != CRYPT_OK) {
 
127
   if ((err = pkcs_1_mgf1(hash_idx, DB, modulus_len - hLen - 1, mask, hLen)) != CRYPT_OK) {
128
128
      goto LBL_ERR;
129
129
   }
130
130
 
135
135
 
136
136
   /* create string of length modulus_len */
137
137
   if (*outlen < modulus_len) {
 
138
      *outlen = modulus_len;
138
139
      err = CRYPT_BUFFER_OVERFLOW;
139
140
      goto LBL_ERR;
140
141
   }
168
169
 
169
170
 
170
171
/* $Source: /cvs/libtom/libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_encode.c,v $ */
171
 
/* $Revision: 1.4 $ */
172
 
/* $Date: 2005/05/05 14:35:59 $ */
 
172
/* $Revision: 1.7 $ */
 
173
/* $Date: 2006/06/16 21:53:41 $ */