[gnutls-dev][andreas.trottmann@werft22.com: Bug#183176: libgnutls5: Crypts wrong on alpha]
Nikos Mavroyanopoulos
nmav@gnutls.org
Mon Mar 3 22:57:02 2003
On Mon, Mar 03, 2003 at 11:55:24PM +0200, Nikos Mavroyanopoulos wrote:
> Does the attached patch fix the problem? (it should)
Plus this one.
Index: gnutls_cipher.c
===================================================================
RCS file: /cvs/gnutls/gnutls/lib/gnutls_cipher.c,v
retrieving revision 2.65
diff -u -u -r2.65 gnutls_cipher.c
--- gnutls_cipher.c 3 Mar 2003 16:08:21 -0000 2.65
+++ gnutls_cipher.c 3 Mar 2003 21:53:51 -0000
@@ -271,8 +271,6 @@
}
c_length = _gnutls_conv_uint16(compressed.size);
- seq_num =
- _gnutls_conv_uint64(&session->connection_state.write_sequence_number);
if (td != GNUTLS_MAC_FAILED) { /* actually when the algorithm in not the NULL one */
_gnutls_hmac(td, UINT64DATA(seq_num), 8);
@@ -431,7 +429,6 @@
c_length = _gnutls_conv_uint16((uint16) length);
- seq_num = _gnutls_conv_uint64( &session->connection_state.read_sequence_number);
/* Pass the type, version, length and compressed through
* MAC.
--
Nikos Mavroyanopoulos