Energy and angular momentum deposition during common envelope evolution