Lines Matching refs:src_op
823 void TEE_CopyOperation(TEE_OperationHandle dst_op, TEE_OperationHandle src_op)
827 if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL)
829 if (dst_op->info.algorithm != src_op->info.algorithm)
831 if (dst_op->info.mode != src_op->info.mode)
833 if (src_op->info.operationClass != TEE_OPERATION_DIGEST) {
837 if (src_op->info.handleState & TEE_HANDLE_FLAG_KEY_SET) {
838 key1 = src_op->key1;
839 key2 = src_op->key2;
842 if ((src_op->info.handleState &
854 dst_op->info.handleState = src_op->info.handleState;
855 dst_op->info.keySize = src_op->info.keySize;
856 dst_op->info.digestLength = src_op->info.digestLength;
857 dst_op->operationState = src_op->operationState;
859 if (dst_op->buffer_two_blocks != src_op->buffer_two_blocks ||
860 dst_op->block_size != src_op->block_size)
864 size_t sz = src_op->block_size;
866 if (src_op->buffer == NULL)
869 if (src_op->buffer_two_blocks)
871 memcpy(dst_op->buffer, src_op->buffer, sz);
872 dst_op->buffer_offs = src_op->buffer_offs;
873 } else if (src_op->buffer != NULL) {
877 res = _utee_cryp_state_copy(dst_op->state, src_op->state);