Lines Matching refs:unpadded_len
2979 size_t unpadded_len; in PHP_FUNCTION() local
2984 &unpadded, &unpadded_len, &blocksize) == FAILURE) { in PHP_FUNCTION()
2998 xpadlen -= unpadded_len & ((size_t) blocksize - 1U); in PHP_FUNCTION()
3000 xpadlen -= unpadded_len % (size_t) blocksize; in PHP_FUNCTION()
3002 if ((size_t) SIZE_MAX - unpadded_len <= xpadlen) { in PHP_FUNCTION()
3006 xpadded_len = unpadded_len + xpadlen; in PHP_FUNCTION()
3008 if (unpadded_len > 0) { in PHP_FUNCTION()
3011 k = unpadded_len; in PHP_FUNCTION()
3021 if (sodium_pad(NULL, (unsigned char *) ZSTR_VAL(padded), unpadded_len, in PHP_FUNCTION()
3052 size_t unpadded_len; in PHP_FUNCTION() local
3075 ret = sodium_unpad(&unpadded_len, (const unsigned char *) padded, in PHP_FUNCTION()
3097 unpadded_len = padded_len - 1U - pad_len; in PHP_FUNCTION()
3101 if (ret != 0 || unpadded_len > LONG_MAX) { in PHP_FUNCTION()
3106 PHP_SODIUM_ZSTR_TRUNCATE(unpadded, unpadded_len); in PHP_FUNCTION()
3107 ZSTR_VAL(unpadded)[unpadded_len] = 0; in PHP_FUNCTION()