Cryptokit.PaddingSourceThe Padding module defines a generic interface for padding input data to an integral number of blocks, as well as two popular padding schemes.
This padding scheme pads data with n copies of the character having code n. The integer n lies between 1 and the block size (included). This constraint ensures non-ambiguity. This scheme is defined in RFC 2040 and in PKCS 5 and 7.