Lines Matching refs:buffer_offs

26 	size_t buffer_offs;	/* Offset in buffer */  member
754 memcpy(dst_op->buffer, src_op->buffer, src_op->buffer_offs); in TEE_CopyOperation()
755 dst_op->buffer_offs = src_op->buffer_offs; in TEE_CopyOperation()
779 operation->buffer_offs = 0; in init_hash_operation()
866 operation->buffer_offs = 0; in TEE_CipherInit()
902 if (op->buffer_offs > 0) { in tee_buffer_update()
904 if (op->buffer_offs < op->block_size) in tee_buffer_update()
905 l = MIN(slen, op->block_size - op->buffer_offs); in tee_buffer_update()
907 l = MIN(slen, buffer_size - op->buffer_offs); in tee_buffer_update()
908 memcpy(op->buffer + op->buffer_offs, src, l); in tee_buffer_update()
909 op->buffer_offs += l; in tee_buffer_update()
912 if ((op->buffer_offs % op->block_size) != 0) in tee_buffer_update()
917 if ((op->buffer_offs > 0) && in tee_buffer_update()
918 ((op->buffer_offs + slen) >= (buffer_size + buffer_left))) { in tee_buffer_update()
919 l = ROUNDUP(op->buffer_offs + slen - buffer_size, in tee_buffer_update()
921 l = MIN(op->buffer_offs, l); in tee_buffer_update()
929 op->buffer_offs -= l; in tee_buffer_update()
930 if (op->buffer_offs > 0) { in tee_buffer_update()
935 memcpy(op->buffer + op->buffer_offs, src, slen); in tee_buffer_update()
936 op->buffer_offs += slen; in tee_buffer_update()
960 memcpy(op->buffer + op->buffer_offs, src, slen); in tee_buffer_update()
961 op->buffer_offs += slen; in tee_buffer_update()
1004 req_dlen = ((operation->buffer_offs + srcLen) / in TEE_CipherUpdate()
1093 if (((operation->buffer_offs + srcLen) % operation->block_size) in TEE_CipherDoFinal()
1106 req_dlen = operation->buffer_offs + srcLen; in TEE_CipherDoFinal()
1133 operation->buffer_offs, dst, in TEE_CipherDoFinal()
1341 operation->buffer_offs = 0; in TEE_AEInit()
1410 req_dlen = ROUNDDOWN(operation->buffer_offs + srcLen, in TEE_AEUpdate()
1490 req_dlen = operation->buffer_offs + srcLen; in TEE_AEEncryptFinal()
1518 operation->buffer_offs, dst, in TEE_AEEncryptFinal()
1576 req_dlen = operation->buffer_offs + srcLen; in TEE_AEDecryptFinal()
1596 operation->buffer_offs, dst, in TEE_AEDecryptFinal()