s3_enc.c (68651) | s3_enc.c (76866) |
---|---|
1/* ssl/s3_enc.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 490 unchanged lines hidden (view full) --- 499 500 EVP_DigestInit( &md_ctx,hash); 501 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); 502 EVP_DigestUpdate(&md_ctx,ssl3_pad_2,npad); 503 EVP_DigestUpdate(&md_ctx,md,md_size); 504 EVP_DigestFinal( &md_ctx,md,&md_size); 505 506 for (i=7; i>=0; i--) | 1/* ssl/s3_enc.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 490 unchanged lines hidden (view full) --- 499 500 EVP_DigestInit( &md_ctx,hash); 501 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); 502 EVP_DigestUpdate(&md_ctx,ssl3_pad_2,npad); 503 EVP_DigestUpdate(&md_ctx,md,md_size); 504 EVP_DigestFinal( &md_ctx,md,&md_size); 505 506 for (i=7; i>=0; i--) |
507 if (++seq[i]) break; | 507 { 508 ++seq[i]; 509 if (seq[i] != 0) break; 510 } |
508 509 return(md_size); 510 } 511 512int ssl3_generate_master_secret(SSL *s, unsigned char *out, unsigned char *p, 513 int len) 514 { 515 static const unsigned char *salt[3]={ --- 68 unchanged lines hidden --- | 511 512 return(md_size); 513 } 514 515int ssl3_generate_master_secret(SSL *s, unsigned char *out, unsigned char *p, 516 int len) 517 { 518 static const unsigned char *salt[3]={ --- 68 unchanged lines hidden --- |