On the connection between leakage tolerance and adaptive security