Calculate missing CK/IK values in USIM
authorMartin Willi <martin@strongswan.org>
Thu, 8 Oct 2009 15:25:10 +0000 (17:25 +0200)
committerMartin Willi <martin@strongswan.org>
Fri, 9 Oct 2009 11:02:20 +0000 (13:02 +0200)
src/charon/plugins/eap_aka_3gpp2/eap_aka_3gpp2_card.c

index aeaa683..8fa5ce9 100644 (file)
@@ -101,6 +101,9 @@ static status_t get_quintuplet(private_eap_aka_3gpp2_card_t *this,
        /* update stored SQN to the received one */
        memcpy(this->sqn, sqn, sizeof(sqn));
 
+       /* CK/IK */
+       this->f->f3(this->f, k, rand, ck);
+       this->f->f4(this->f, k, rand, ik);
        /* calculate RES */
        this->f->f2(this->f, k, rand, res);
        DBG3(DBG_IKE, "calculated rand %b", res, sizeof(res));