Well there's code in page 130. Basically you're computing a checksum on the data, via the GenerateMac() function and checking it with IsMacValid().
So you generate a key for validation using the GenerateRandomBytes() method on page 127, and then pass it, along with the text you want to calculate the checksum for into GenerateMac() then when you retrieve your data, after you unencrypt it, you validate the generated MAC
|