Hash function.
Parameters used to construct this cipher.
Parameters used to construct this cipher.
Function that generates a seed of the given length.
Optional label that can be verified during decryption
Hash of the label.
Takes an iterator of byte sequences and outputs an iterator of blocks for encryption.
Takes an iterator of byte sequences and outputs an iterator of blocks for encryption.
Each Seq that the returned iterator returns MUST be exactly blockSize long.
Takes an iterator of blocks and removes the padding.
Takes an iterator of blocks and removes the padding.
Each Seq that input contains must be exactly blockSize long.
Optimal asymmetric encryption padding as defined in PKCS#1 v2.1
Block (length k) 0 1 2 3 4 ... hLen hlen+1 ... k ----------------------------- 0x00 ------Seed------ ------DB----
k=16 hlen=5 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 s s s s s d d d d d d d d d d
DB (length k - hLen - 1) 0 1 2 ... hlen-1 hlen ... k-hLen-1 ---------------------------------- ------lHash----- ------mPart------
k=16 hlen=5 0 1 2 3 4 5 6 7 8 9 10 h h h h h m m m m m m