Deriving integrity keys