keymat: derive_ike_keys updated with XAUTH RSA:s

This commit is contained in:
Clavister OpenSource
2012-03-20 17:31:11 +01:00
parent e102f86e88
commit a846be3116
Regular → Executable
+7 -1
View File
@@ -426,8 +426,14 @@ METHOD(keymat_v1_t, derive_ike_keys, bool,
this->prf->allocate_bytes(this->prf, nonces, &this->skeyid);
break;
}
case AUTH_RSA:
case AUTH_XAUTH_INIT_RSA:
case AUTH_XAUTH_RESP_RSA:
{
this->prf->set_key(this->prf, nonces);
this->prf->allocate_bytes(this->prf, g_xy, &this->skeyid);
break;
}
case AUTH_RSA:
{
/* signatures : SKEYID = prf(Ni_b | Nr_b, g^xy)
* pubkey encr: SKEYID = prf(hash(Ni_b | Nr_b), CKY-I | CKY-R) */