diff options
Diffstat (limited to 'src/libsimaka/simaka_crypto.c')
-rw-r--r-- | src/libsimaka/simaka_crypto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsimaka/simaka_crypto.c b/src/libsimaka/simaka_crypto.c index 4afab234b..b85502012 100644 --- a/src/libsimaka/simaka_crypto.c +++ b/src/libsimaka/simaka_crypto.c @@ -124,6 +124,8 @@ static chunk_t derive_keys_full(private_simaka_crypto_t *this, this->signer->set_key(this->signer, k_auth); this->crypter->set_key(this->crypter, k_encr); + charon->sim->key_hook(charon->sim, k_encr, k_auth); + this->derived = TRUE; return chunk_clone(msk); } @@ -150,6 +152,8 @@ static void derive_keys_reauth(private_simaka_crypto_t *this, chunk_t mk) this->signer->set_key(this->signer, k_auth); this->crypter->set_key(this->crypter, k_encr); + charon->sim->key_hook(charon->sim, k_encr, k_auth); + this->derived = TRUE; } |