Lines Matching defs:block_size
132 crypto_data_t *out, size_t block_size,
150 if (length + ctx->gcm_remainder_len < block_size) {
167 need = block_size - ctx->gcm_remainder_len;
195 ctx->gcm_processed_data_len += block_size;
206 &out_data_1_len, &out_data_2, block_size);
209 if (out_data_1_len == block_size) {
216 block_size - out_data_1_len);
220 out->cd_offset += block_size;
231 datap += block_size;
237 if (remainder > 0 && remainder < block_size) {
252 gcm_encrypt_final(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size,
290 block_size - ctx->gcm_remainder_len);
330 gcm_decrypt_incomplete_block(gcm_ctx_t *ctx, size_t block_size, size_t index,
353 bzero((uint8_t *)ctx->gcm_tmp, block_size);
371 crypto_data_t *out, size_t block_size,
409 gcm_decrypt_final(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size,
430 if (remainder < block_size) {
437 gcm_decrypt_incomplete_block(ctx, block_size,
460 processed += block_size;
461 blockp += block_size;
462 remainder -= block_size;
514 gcm_ctx_t *ctx, size_t block_size,
537 if (remainder < block_size) {
538 bzero(cb, block_size);
544 processed += block_size;
545 remainder -= block_size;
565 unsigned char *auth_data, size_t auth_data_len, size_t block_size,
578 gcm_format_initial_blocks(iv, iv_len, ctx, block_size,
583 bzero(authp, block_size);
584 bzero(ghash, block_size);
589 if (remainder < block_size) {
594 bzero(authp, block_size);
600 processed += block_size;
601 remainder -= block_size;
613 gcm_init_ctx(gcm_ctx_t *gcm_ctx, char *param, size_t block_size,
644 gcm_param->pAAD, gcm_param->ulAADLen, block_size,
653 gmac_init_ctx(gcm_ctx_t *gcm_ctx, char *param, size_t block_size,
679 gmac_param->pAAD, gmac_param->ulAADLen, block_size,