Lines Matching refs:padsize
2594 size_t padsize, bsize; in hx509_crypto_encrypt() local
2625 padsize = 0; in hx509_crypto_encrypt()
2632 padsize = bsize - (length % bsize); in hx509_crypto_encrypt()
2635 (*ciphertext)->length = length + padsize; in hx509_crypto_encrypt()
2636 (*ciphertext)->data = malloc(length + padsize); in hx509_crypto_encrypt()
2643 if (padsize) { in hx509_crypto_encrypt()
2647 for (i = 0; i < padsize; i++) in hx509_crypto_encrypt()
2648 *p++ = padsize; in hx509_crypto_encrypt()
2653 length + padsize); in hx509_crypto_encrypt()
2728 int padsize; in hx509_crypto_decrypt() local
2739 padsize = *p; in hx509_crypto_decrypt()
2740 if (padsize > bsize) { in hx509_crypto_decrypt()
2744 clear->length -= padsize; in hx509_crypto_decrypt()
2745 for (j = 0; j < padsize; j++) { in hx509_crypto_decrypt()
2746 if (*p-- != padsize) { in hx509_crypto_decrypt()