These examples were written in the context of Chapter 1 - "Understanding the concept of digital signatures" of the Digital Signatures for PDF documents eBook.

c1_01_digestdefault

c1_02_digestbc

c1_03_encryptdecrypt