[BACK]Return to cipher.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/cipher.c between version 1.54 and 1.55

version 1.54, 2002/03/19 10:49:35 version 1.55, 2002/04/03 09:26:11
Line 67 
Line 67 
         { "aes128-cbc",         SSH_CIPHER_SSH2, 16, 16, evp_rijndael },          { "aes128-cbc",         SSH_CIPHER_SSH2, 16, 16, evp_rijndael },
         { "aes192-cbc",         SSH_CIPHER_SSH2, 16, 24, evp_rijndael },          { "aes192-cbc",         SSH_CIPHER_SSH2, 16, 24, evp_rijndael },
         { "aes256-cbc",         SSH_CIPHER_SSH2, 16, 32, evp_rijndael },          { "aes256-cbc",         SSH_CIPHER_SSH2, 16, 32, evp_rijndael },
           { "rijndael-cbc@lysator.liu.se",
                                   SSH_CIPHER_SSH2, 16, 32, evp_rijndael },
   
         { NULL,                 SSH_CIPHER_ILLEGAL, 0, 0, NULL }          { NULL,                 SSH_CIPHER_ILLEGAL, 0, 0, NULL }
 };  };
Line 541 
Line 543 
                         fatal("%s: wrong iv length %d != %d", __FUNCTION__,                          fatal("%s: wrong iv length %d != %d", __FUNCTION__,
                             evplen, len);                              evplen, len);
   
                 if (strncmp(c->name, "aes", 3) == 0) {                  if (c->evptype == evp_rijndael) {
                         struct ssh_rijndael_ctx *aesc;                          struct ssh_rijndael_ctx *aesc;
   
                         aesc = EVP_CIPHER_CTX_get_app_data(&cc->evp);                          aesc = EVP_CIPHER_CTX_get_app_data(&cc->evp);
Line 586 
Line 588 
                 if (evplen == 0)                  if (evplen == 0)
                         return;                          return;
   
                 if (strncmp(c->name, "aes", 3) == 0) {                  if (c->evptype == evp_rijndael) {
                         struct ssh_rijndael_ctx *aesc;                          struct ssh_rijndael_ctx *aesc;
   
                         aesc = EVP_CIPHER_CTX_get_app_data(&cc->evp);                          aesc = EVP_CIPHER_CTX_get_app_data(&cc->evp);

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55