Home
last modified time | relevance | path

Searched refs:padded_length (Results 1 – 3 of 3) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_depad.c19 unsigned long padded_length, unpadded_length, n; in padding_depad() local
26 padded_length = *length; in padding_depad()
31 pad = data[padded_length - 1]; in padding_depad()
33 if (pad > padded_length || pad == 0) return CRYPT_INVALID_ARG; in padding_depad()
35 unpadded_length = padded_length - pad; in padding_depad()
39 unpadded_length = padded_length; in padding_depad()
47 for (n = unpadded_length; n < padded_length - 1; ++n) { in padding_depad()
58 for (n = unpadded_length; n < padded_length; ++n) { in padding_depad()
77 if (unpadded_length == padded_length) return CRYPT_INVALID_PACKET; in padding_depad()
A Dpadding_pad.c80 int padding_pad(unsigned char *data, unsigned long length, unsigned long* padded_length, unsigned l… in padding_pad() argument
88 LTC_ARGCHK(padded_length != NULL); in padding_pad()
97 if (*padded_length < l) { in padding_pad()
100 *padded_length = l; in padding_pad()
102 *padded_length = length + 256; in padding_pad()
105 *padded_length = l; in padding_pad()
146 *padded_length = l; in padding_pad()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_misc.h158 int padding_pad(unsigned char *data, unsigned long length, unsigned long* padded_length, unsigned l…

Completed in 3 milliseconds