Semi fragile watermarking