qcrypto_padding_iso7816_size()

Updated: October 26, 2022

Calculate ISO 7816 padding length

Synopsis:

#include <qcrypto/qcrypto.h>
size_t qcrypto_padding_iso7816_size(size_t size,
                                    size_t blocksize)

Arguments:

size
The input data size.
blocksize
The algorithm blocksize to adjust the padding to.

Library:

libqcrypto

Returns:

The padding size in bytes.