|
|
|
@ -116,12 +116,6 @@ static inline void crypto_cleanup(struct crypto_context *c) { |
|
|
|
if (c->crypto_suite->session_key_cleanup) |
|
|
|
c->crypto_suite->session_key_cleanup(c); |
|
|
|
} |
|
|
|
static inline void crypto_context_pair_uninit(struct crypto_context_pair *p) { |
|
|
|
p->in.session_key_ctx[0] = NULL; |
|
|
|
p->in.session_key_ctx[1] = NULL; |
|
|
|
p->out.session_key_ctx[0] = NULL; |
|
|
|
p->out.session_key_ctx[1] = NULL; |
|
|
|
} |
|
|
|
static inline void crypto_context_move(struct crypto_context *dst, struct crypto_context *src) { |
|
|
|
int i; |
|
|
|
|
|
|
|
@ -129,7 +123,7 @@ static inline void crypto_context_move(struct crypto_context *dst, struct crypto |
|
|
|
return; |
|
|
|
crypto_cleanup(dst); |
|
|
|
*dst = *src; |
|
|
|
for (i = 0; i < G_N_ELEMENTS(dst->session_key_ctx); i++) |
|
|
|
for (i = 0; i < G_N_ELEMENTS(src->session_key_ctx); i++) |
|
|
|
src->session_key_ctx[i] = NULL; |
|
|
|
} |
|
|
|
|
|
|
|
|