keymat: derive_ike_keys updated with XAUTH RSA:s
This commit is contained in:
Regular → Executable
+7
-1
@@ -426,8 +426,14 @@ METHOD(keymat_v1_t, derive_ike_keys, bool,
|
|||||||
this->prf->allocate_bytes(this->prf, nonces, &this->skeyid);
|
this->prf->allocate_bytes(this->prf, nonces, &this->skeyid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AUTH_RSA:
|
|
||||||
case AUTH_XAUTH_INIT_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)
|
/* signatures : SKEYID = prf(Ni_b | Nr_b, g^xy)
|
||||||
* pubkey encr: SKEYID = prf(hash(Ni_b | Nr_b), CKY-I | CKY-R) */
|
* pubkey encr: SKEYID = prf(hash(Ni_b | Nr_b), CKY-I | CKY-R) */
|
||||||
|
|||||||
Reference in New Issue
Block a user