Lines Matching refs:buflen
80 unsigned int buflen = 0; in gcm_calculate_auth_mac() local
97 if (n + buflen < GHASH_BLOCK_SIZE) { in gcm_calculate_auth_mac()
98 memcpy(&buffer[buflen], ptr, n); in gcm_calculate_auth_mac()
99 buflen += n; in gcm_calculate_auth_mac()
103 if (buflen) { in gcm_calculate_auth_mac()
104 unsigned int l = GHASH_BLOCK_SIZE - buflen; in gcm_calculate_auth_mac()
106 memcpy(&buffer[buflen], ptr, l); in gcm_calculate_auth_mac()
121 buflen = n % GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
122 if (buflen) in gcm_calculate_auth_mac()
123 memcpy(&buffer[0], ptr, buflen); in gcm_calculate_auth_mac()
131 if (buflen) { in gcm_calculate_auth_mac()
132 memset(&buffer[buflen], 0, GHASH_BLOCK_SIZE - buflen); in gcm_calculate_auth_mac()