An Attack and a Defence in the Context of Hardware Security