Fix seed construction for IKEv1 key derivation
authorMartin Willi <martin@revosec.ch>
Wed, 23 Nov 2011 13:05:19 +0000 (14:05 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:50 +0000 (17:30 +0100)
src/libcharon/sa/keymat_v1.c

index 8b9ac49..3ec8083 100644 (file)
@@ -525,7 +525,7 @@ METHOD(keymat_v1_t, derive_child_keys, bool,
                }
                DBG4(DBG_CHD, "DH secret %B", &secret);
        }
-       seed = chunk_cata("mcc", secret, chunk_from_thing(protocol),
+       seed = chunk_cata("mcccc", secret, chunk_from_thing(protocol),
                                          chunk_from_thing(spi), nonce_i, nonce_r);
        DBG4(DBG_CHD, "seed %B", &seed);