Searched refs:src_c_ctx (Results 1 – 1 of 1) sorted by relevance
729 struct sec_cipher_ctx *src_c_ctx = src_ctx; in sec_cipher_copy_state() local731 dst_c_ctx->alg = src_c_ctx->alg; in sec_cipher_copy_state()732 dst_c_ctx->mode = src_c_ctx->mode; in sec_cipher_copy_state()733 dst_c_ctx->encrypt = src_c_ctx->encrypt; in sec_cipher_copy_state()734 dst_c_ctx->offs = src_c_ctx->offs; in sec_cipher_copy_state()736 if (src_c_ctx->key_len) { in sec_cipher_copy_state()737 dst_c_ctx->key_len = src_c_ctx->key_len; in sec_cipher_copy_state()738 dst_c_ctx->c_key_len = src_c_ctx->c_key_len; in sec_cipher_copy_state()739 memcpy(dst_c_ctx->key, src_c_ctx->key, dst_c_ctx->key_len); in sec_cipher_copy_state()746 if (src_c_ctx->iv_len) { in sec_cipher_copy_state()[all …]