|
Module Cryptokit.Paddingmodule Padding:
The
Padding module defines a generic interface
for padding input data to an integral number of blocks,
as well as two popular padding schemes.class type scheme =
Generic interface of a padding scheme.
val length :
This padding scheme pads data with
n copies of the character
having code n . It is unambiguous since at least one
character of padding is added. This scheme is defined in RFC 2040.val _8000 :
This padding scheme pads data with one
0x80 byte, followed
by as many 0 bytes as needed to fill the block. |