Lines Matching refs:dst_op
715 void TEE_CopyOperation(TEE_OperationHandle dst_op, TEE_OperationHandle src_op) in TEE_CopyOperation() argument
719 if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL) in TEE_CopyOperation()
721 if (dst_op->info.algorithm != src_op->info.algorithm) in TEE_CopyOperation()
723 if (dst_op->info.mode != src_op->info.mode) in TEE_CopyOperation()
736 TEE_SetOperationKey(dst_op, key1); in TEE_CopyOperation()
738 TEE_SetOperationKey2(dst_op, key1, key2); in TEE_CopyOperation()
741 dst_op->info.handleState = src_op->info.handleState; in TEE_CopyOperation()
742 dst_op->info.keySize = src_op->info.keySize; in TEE_CopyOperation()
743 dst_op->info.digestLength = src_op->info.digestLength; in TEE_CopyOperation()
744 dst_op->operationState = src_op->operationState; in TEE_CopyOperation()
746 if (dst_op->buffer_two_blocks != src_op->buffer_two_blocks || in TEE_CopyOperation()
747 dst_op->block_size != src_op->block_size) in TEE_CopyOperation()
750 if (dst_op->buffer != NULL) { in TEE_CopyOperation()
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()
760 res = _utee_cryp_state_copy(dst_op->state, src_op->state); in TEE_CopyOperation()